Use unsigned int with %x format string

This commit is contained in:
Quipyowert2
2019-12-04 21:23:15 -08:00
parent 5aad3f1775
commit 46b833f11d

View File

@@ -800,9 +800,9 @@ namespace StringUtils
}
else if (input[n] == ';')
{
int c;
unsigned int c;
const char* format = (isHex ? "%x" : "%i");
const char* format = (isHex ? "%x" : "%u");
if (sscanf(entity.c_str(), format, &c) == 1)
{
output += char32_t(c);