mirror of
https://github.com/Tencent/rapidjson.git
synced 2025-10-28 19:52:02 +01:00
use rapidjson::Value::SizeType as the type for storing and comparing the string length
This commit is contained in:
@@ -1086,7 +1086,7 @@ TEST(Document, CrtAllocator) {
|
||||
}
|
||||
|
||||
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::Value val;
|
||||
|
||||
Reference in New Issue
Block a user