Fix a compilation error due to INT64_C

This commit is contained in:
Milo Yip 2014-08-08 22:07:02 +08:00
parent 5e5fb7b3d8
commit 0e4f08ea89

View File

@ -420,7 +420,7 @@ public:
if (!(static_cast<uint64_t>(i64) & RAPIDJSON_UINT64_C2(0xFFFFFFFF, 0x80000000))) if (!(static_cast<uint64_t>(i64) & RAPIDJSON_UINT64_C2(0xFFFFFFFF, 0x80000000)))
flags_ |= kIntFlag; flags_ |= kIntFlag;
} }
else if (i64 >= INT64_C(-2147483648)) else if (i64 >= static_cast<int64_t>(RAPIDJSON_UINT64_C2(0xFFFFFFFF, 0x80000000)))
flags_ |= kIntFlag; flags_ |= kIntFlag;
} }