diff --git a/include/nlohmann/detail/output/serializer.hpp b/include/nlohmann/detail/output/serializer.hpp index 0ce16097a..354b18c23 100644 --- a/include/nlohmann/detail/output/serializer.hpp +++ b/include/nlohmann/detail/output/serializer.hpp @@ -160,7 +160,7 @@ class serializer return; } - if (pretty_print(val, current_indent)) + if (pretty_print(val, static_cast(current_indent))) { o->write_characters("{\n", 2); @@ -233,7 +233,7 @@ class serializer return; } - if (pretty_print(val, current_indent)) + if (pretty_print(val, static_cast(current_indent))) { o->write_characters("[\n", 2); @@ -295,7 +295,7 @@ class serializer case value_t::binary: { - if (pretty_print(val, current_indent)) + if (pretty_print(val, static_cast(current_indent))) { o->write_characters("{\n", 2);