From 0e4f08ea8992dbdd9fe6de326563b89032a84474 Mon Sep 17 00:00:00 2001 From: Milo Yip Date: Fri, 8 Aug 2014 22:07:02 +0800 Subject: [PATCH] Fix a compilation error due to INT64_C --- include/rapidjson/document.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }