From bb0aac1996884975a939f163ebdfc2690e3902d8 Mon Sep 17 00:00:00 2001 From: Marius Elvert Date: Tue, 22 Nov 2022 23:57:48 +0100 Subject: [PATCH] Explicit conversion to int --- include/nlohmann/detail/output/serializer.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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);