mirror of
https://github.com/Tencent/rapidjson.git
synced 2025-10-28 19:52:02 +01:00
Fix unsigned long as unsigned unit test
This commit is contained in:
@@ -499,7 +499,7 @@ TEST(Value, Uint) {
|
|||||||
RAPIDJSON_STATIC_ASSERT(sizeof(unsigned long) == sizeof(unsigned));
|
RAPIDJSON_STATIC_ASSERT(sizeof(unsigned long) == sizeof(unsigned));
|
||||||
z.SetUint(1234);
|
z.SetUint(1234);
|
||||||
EXPECT_TRUE(z.Is<unsigned long>());
|
EXPECT_TRUE(z.Is<unsigned long>());
|
||||||
EXPECT_EQ(1234ul, z.Get<unsigned>());
|
EXPECT_EQ(1234ul, z.Get<unsigned long>());
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user