From 59ffb9e5f0b5aae07c6d4a507a02cd1a0a7114a3 Mon Sep 17 00:00:00 2001 From: miloyip Date: Mon, 13 Apr 2015 18:32:11 +0800 Subject: [PATCH] Try to fix a gcc/clang error --- test/unittest/valuetest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unittest/valuetest.cpp b/test/unittest/valuetest.cpp index 26fde3b..bb4cc04 100644 --- a/test/unittest/valuetest.cpp +++ b/test/unittest/valuetest.cpp @@ -489,7 +489,7 @@ TEST(Value, Int64) { EXPECT_FALSE(z.IsInt()); EXPECT_NEAR(-2147483649.0, z.GetDouble(), 0.0); - z.SetInt64(-9223372036854775808LL); + z.SetInt64(static_cast(RAPIDJSON_UINT64_C2(0x80000000, 00000000))); EXPECT_DOUBLE_EQ(-9223372036854775808.0, z.GetDouble()); }