mirror of
https://github.com/Tencent/rapidjson.git
synced 2025-10-28 03:20:15 +01:00
Try to fix clang and gcc warnings problems again x6
This commit is contained in:
@@ -487,7 +487,7 @@ TEST(Value, Int64) {
|
||||
EXPECT_TRUE(z.IsUint());
|
||||
EXPECT_NEAR(2147483648.0, z.GetDouble(), 0.0);
|
||||
|
||||
z.SetInt64(int64_t(4294967298u) + 1); // 2^32, cannot cast as uint
|
||||
z.SetInt64(int64_t(4294967295u) + 1); // 2^32, cannot cast as uint
|
||||
EXPECT_FALSE(z.IsInt());
|
||||
EXPECT_FALSE(z.IsUint());
|
||||
EXPECT_NEAR(4294967296.0, z.GetDouble(), 0.0);
|
||||
|
||||
Reference in New Issue
Block a user