diff --git a/include/rapidjson/document.h b/include/rapidjson/document.h index f1fdc64..1aae685 100644 --- a/include/rapidjson/document.h +++ b/include/rapidjson/document.h @@ -420,7 +420,7 @@ public: if (!(static_cast(i64) & RAPIDJSON_UINT64_C2(0xFFFFFFFF, 0x80000000))) flags_ |= kIntFlag; } - else if (i64 >= INT64_C(-2147483648)) + else if (i64 >= static_cast(RAPIDJSON_UINT64_C2(0xFFFFFFFF, 0x80000000))) flags_ |= kIntFlag; }