Fix a couple of warning in JSON serializer

This commit is contained in:
Gioacchino Mazzurco 2019-09-09 09:08:00 +02:00
parent 23a7a0876a
commit 6aa85ea292
No known key found for this signature in database
GPG Key ID: A1FBCA3872E87051

View File

@ -732,11 +732,13 @@ bool RsTypeSerializer::to_JSON(
rapidjson::Document::AllocatorType& allocator = jDoc.GetAllocator();
rapidjson::Value key;
key.SetString(memberName.c_str(), memberName.length(), allocator);
key.SetString( memberName.c_str(),
static_cast<rapidjson::SizeType>(memberName.length()),
allocator );
std::string encodedValue;
Radix64::encode( reinterpret_cast<uint8_t*>(member.first),
member.second, encodedValue );
static_cast<int>(member.second), encodedValue );
rapidjson::Value value;
value.SetString(encodedValue.data(), allocator);