Merge pull request #978 from AlbertHungGarmin/fix-format-specifier

Fix format specifier mismatch in XMLUtil::ToStr
This commit is contained in:
Lee Thomason
2024-06-13 08:17:16 -07:00
committed by GitHub

View File

@@ -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)