Commit d72039f3 authored by Milo Yip's avatar Milo Yip

Try to fix clang and gcc warnings problems again x6

parent 6e08e760
......@@ -1040,8 +1040,8 @@ public:
size_t Tell() const { return static_cast<size_t>(is_.tellg()); }
Ch* PutBegin() { assert(false); return 0; }
void Put(Ch) { assert(false); }
void Flush() { assert(false); }
void Put(Ch) RAPIDJSON_NORETURN_SUFFIX { assert(false); }
void Flush() RAPIDJSON_NORETURN_SUFFIX { assert(false); }
size_t PutEnd(Ch*) { assert(false); return 0; }
private:
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment