File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -804,7 +804,7 @@ void ValueVisitor::visitEnumValue(const peg::ast_node& enumValue)
804
804
void ValueVisitor::visitListValue (const peg::ast_node& listValue)
805
805
{
806
806
_value = rapidjson::Value (rapidjson::Type::kArrayType );
807
- _value.Reserve (listValue.children .size (), _allocator);
807
+ _value.Reserve (static_cast <rapidjson::SizeType>( listValue.children .size () ), _allocator);
808
808
809
809
ValueVisitor visitor (_allocator, _variables);
810
810
Original file line number Diff line number Diff line change @@ -370,7 +370,7 @@ struct ModifiedResult
370
370
{
371
371
auto value = rapidjson::Value (rapidjson::Type::kArrayType );
372
372
373
- value.Reserve (result.size (), params.allocator );
373
+ value.Reserve (static_cast <rapidjson::SizeType>( result.size () ), params.allocator );
374
374
375
375
for (auto & entry : result)
376
376
{
Original file line number Diff line number Diff line change @@ -982,7 +982,7 @@ void Generator::DefaultValueVisitor::visitListValue(const peg::ast_node& listVal
982
982
983
983
auto & allocator = _value.GetAllocator ();
984
984
985
- _value.Reserve (listValue.children .size (), allocator);
985
+ _value.Reserve (static_cast <rapidjson::SizeType>( listValue.children .size () ), allocator);
986
986
for (const auto & child : listValue.children )
987
987
{
988
988
rapidjson::Value value;
You can’t perform that action at this time.
0 commit comments