Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/miloyip/rapidjson.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilo Yip <miloyip@gmail.com>2014-08-08 18:07:02 +0400
committerMilo Yip <miloyip@gmail.com>2014-08-08 18:07:02 +0400
commit0e4f08ea8992dbdd9fe6de326563b89032a84474 (patch)
tree40b2223a3f5a4bc9622b55a58278ba226063ce68 /include
parent5e5fb7b3d8d297fff731d1f7c0b4cbb6932a833f (diff)
Fix a compilation error due to INT64_C
Diffstat (limited to 'include')
-rw-r--r--include/rapidjson/document.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/rapidjson/document.h b/include/rapidjson/document.h
index f1fdc642..1aae6855 100644
--- a/include/rapidjson/document.h
+++ b/include/rapidjson/document.h
@@ -420,7 +420,7 @@ public:
if (!(static_cast<uint64_t>(i64) & RAPIDJSON_UINT64_C2(0xFFFFFFFF, 0x80000000)))
flags_ |= kIntFlag;
}
- else if (i64 >= INT64_C(-2147483648))
+ else if (i64 >= static_cast<int64_t>(RAPIDJSON_UINT64_C2(0xFFFFFFFF, 0x80000000)))
flags_ |= kIntFlag;
}