Skip to content

Commit

Permalink
Merge pull request #978 from AlbertHungGarmin/fix-format-specifier
Browse files Browse the repository at this point in the history
Fix format specifier mismatch in XMLUtil::ToStr
  • Loading branch information
leethomason authored Jun 13, 2024
2 parents 312a809 + dded8bb commit a965e28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tinyxml2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ void XMLUtil::ToStr( int64_t v, char* buffer, int bufferSize )
void XMLUtil::ToStr( uint64_t v, char* buffer, int bufferSize )
{
// horrible syntax trick to make the compiler happy about %llu
TIXML_SNPRINTF(buffer, bufferSize, "%llu", (long long)v);
TIXML_SNPRINTF(buffer, bufferSize, "%llu", static_cast<unsigned long long>(v));
}

bool XMLUtil::ToInt(const char* str, int* value)
Expand Down

0 comments on commit a965e28

Please sign in to comment.