Commit ba05ea52 authored by Kosta's avatar Kosta

use `rapidjson::Value::SizeType` as the type for storing and comparing the string length

parent 60999756
...@@ -1086,7 +1086,7 @@ TEST(Document, CrtAllocator) { ...@@ -1086,7 +1086,7 @@ TEST(Document, CrtAllocator) {
} }
static void TestShortStringOptimization(const char* str) { static void TestShortStringOptimization(const char* str) {
const int len = (int)strlen(str); const rapidjson::Value::SizeType len = (rapidjson::Value::SizeType)strlen(str);
rapidjson::Document doc; rapidjson::Document doc;
rapidjson::Value val; rapidjson::Value val;
......
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