use rapidjson::Value::SizeType
as the type for storing and comparing the string length
This commit is contained in:
parent
609997565c
commit
ba05ea52cf
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user