Skip to content

Commit dbe4083

Browse files
committed
[#628] Fix issue in StringConvertUtil.h caught by MISRA 2023 rule 7.0.3
1 parent 009d16a commit dbe4083

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/extensions/cpp/runtime/src/zserio/StringConvertUtil.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const char* convertIntToString(std::array<char, 24>& buffer, T value, bool isNeg
3333
"8081828384858687888990919293949596979899"};
3434

3535
auto bufferEnd = buffer.end();
36-
*(--bufferEnd) = 0; // always terminate with '\0'
36+
*(--bufferEnd) = '\0'; // always terminate with '\0'
3737

3838
while (value >= 100)
3939
{

0 commit comments

Comments
 (0)