Explicit conversion to int

This commit is contained in:
Marius Elvert 2022-11-22 23:57:48 +01:00
parent 6edfc0e678
commit bb0aac1996

View File

@ -160,7 +160,7 @@ class serializer
return; return;
} }
if (pretty_print(val, current_indent)) if (pretty_print(val, static_cast<int>(current_indent)))
{ {
o->write_characters("{\n", 2); o->write_characters("{\n", 2);
@ -233,7 +233,7 @@ class serializer
return; return;
} }
if (pretty_print(val, current_indent)) if (pretty_print(val, static_cast<int>(current_indent)))
{ {
o->write_characters("[\n", 2); o->write_characters("[\n", 2);
@ -295,7 +295,7 @@ class serializer
case value_t::binary: case value_t::binary:
{ {
if (pretty_print(val, current_indent)) if (pretty_print(val, static_cast<int>(current_indent)))
{ {
o->write_characters("{\n", 2); o->write_characters("{\n", 2);