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

This commit is contained in:
Kosta 2014-09-01 12:52:36 +02:00
parent 609997565c
commit ba05ea52cf

View File

@ -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;