1 --- /src/net/json_util_test.cc
2 +++ /src/net/json_util_test.cc
4 for (size_t i = 0; i < arraysize(kNumS32ValueKeys); ++i) {
6 Json::Value json_value;
7 - json_value[kNumS32ValueKeys[i]] = -2147483649ll;
8 + json_value[kNumS32ValueKeys[i]] = static_cast<Json::Value::Int64>(-2147483649ll);
10 EXPECT_FALSE(JsonUtil::JsonValueToProtobufMessage(json_value, &msg));
13 Json::Value json_value;
14 - json_value[kNumS32ValueKeys[i]] = 2147483648ull;
15 + json_value[kNumS32ValueKeys[i]] = static_cast<Json::Value::UInt64>(2147483648ull);
17 EXPECT_FALSE(JsonUtil::JsonValueToProtobufMessage(json_value, &msg));
22 Json::Value json_value;
23 - json_value[kNumU32ValueKeys[i]] = 4294967296ull;
24 + json_value[kNumU32ValueKeys[i]] = static_cast<Json::Value::UInt64>(4294967296ull);
26 EXPECT_FALSE(JsonUtil::JsonValueToProtobufMessage(json_value, &msg));