We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63c9a78 commit 11a80f3Copy full SHA for 11a80f3
json.c
@@ -222,9 +222,9 @@ json_value * json_parse_ex (json_settings * settings,
222
223
/* Skip UTF-8 BOM
224
*/
225
- if (length >= 3 && json [0] == 0xEF
226
- && json [1] == 0xBB
227
- && json [2] == 0xBF)
+ if (length >= 3 && ((unsigned char) json [0]) == 0xEF
+ && ((unsigned char) json [1]) == 0xBB
+ && ((unsigned char) json [2]) == 0xBF)
228
{
229
json += 3;
230
length -= 3;
0 commit comments