🚨 fixing a MinGW warning #1192

This commit is contained in:
Niels Lohmann 2018-08-14 22:11:47 +02:00
parent fed70f6bff
commit be2065dce9
No known key found for this signature in database
GPG key ID: 7F3CEA63AE251B69
2 changed files with 2 additions and 2 deletions

View file

@ -1173,7 +1173,7 @@ scan_number_done:
{ {
// escape control characters // escape control characters
char cs[9]; char cs[9];
snprintf(cs, 9, "<U+%.4hhX>", static_cast<unsigned char>(c)); snprintf(cs, 9, "<U+%.4X>", static_cast<unsigned char>(c));
result += cs; result += cs;
} }
else else

View file

@ -3370,7 +3370,7 @@ scan_number_done:
{ {
// escape control characters // escape control characters
char cs[9]; char cs[9];
snprintf(cs, 9, "<U+%.4hhX>", static_cast<unsigned char>(c)); snprintf(cs, 9, "<U+%.4X>", static_cast<unsigned char>(c));
result += cs; result += cs;
} }
else else