diff --git a/third-party/rapidjson/reader.h b/third-party/rapidjson/reader.h index 96bbc6eb5..78391add3 100644 --- a/third-party/rapidjson/reader.h +++ b/third-party/rapidjson/reader.h @@ -419,7 +419,7 @@ private: Ch c = s.Take(); if (c == '\\') { // Escape Ch e = s.Take(); - if ((sizeof(Ch) == 1 || e < 256) && escape[(unsigned char)e]) + if ((sizeof(Ch) == 1 || (int)e < 256) && escape[(unsigned char)e]) RAPIDJSON_PUT(escape[(unsigned char)e]); else if (e == 'u') { // Unicode unsigned codepoint = ParseHex4(s);