From f6ceebc0ca652ecbcda4c7197ea0dbdcd0ca8bae Mon Sep 17 00:00:00 2001 From: Qianqian Fang Date: Mon, 25 Apr 2022 23:46:27 -0400 Subject: [PATCH] fix ci error --- include/nlohmann/detail/input/binary_reader.hpp | 2 +- include/nlohmann/detail/output/binary_writer.hpp | 2 +- single_include/nlohmann/json.hpp | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/nlohmann/detail/input/binary_reader.hpp b/include/nlohmann/detail/input/binary_reader.hpp index 2a3172139..6474b8b05 100644 --- a/include/nlohmann/detail/input/binary_reader.hpp +++ b/include/nlohmann/detail/input/binary_reader.hpp @@ -75,7 +75,7 @@ class binary_reader @param[in] adapter input adapter to read from */ - explicit binary_reader(InputAdapterType&& adapter, const input_format_t format = input_format_t::json) noexcept : input_format(format), ia(std::move(adapter)) + explicit binary_reader(InputAdapterType&& adapter, const input_format_t format = input_format_t::json) noexcept : ia(std::move(adapter)), input_format(format) { (void)detail::is_sax_static_asserts {}; } diff --git a/include/nlohmann/detail/output/binary_writer.hpp b/include/nlohmann/detail/output/binary_writer.hpp index b7f63ff37..bb44a1811 100644 --- a/include/nlohmann/detail/output/binary_writer.hpp +++ b/include/nlohmann/detail/output/binary_writer.hpp @@ -1614,7 +1614,7 @@ class binary_writer }; string_t key = "_ArrayType_"; - auto it = bjdtype.find(value.at(key)); + auto it = bjdtype.find(static_cast(value.at(key))); if (it == bjdtype.end()) { return true; diff --git a/single_include/nlohmann/json.hpp b/single_include/nlohmann/json.hpp index c4daa1e83..d596180c6 100644 --- a/single_include/nlohmann/json.hpp +++ b/single_include/nlohmann/json.hpp @@ -8451,7 +8451,7 @@ class binary_reader @param[in] adapter input adapter to read from */ - explicit binary_reader(InputAdapterType&& adapter, const input_format_t format = input_format_t::json) noexcept : input_format(format), ia(std::move(adapter)) + explicit binary_reader(InputAdapterType&& adapter, const input_format_t format = input_format_t::json) noexcept : ia(std::move(adapter)), input_format(format) { (void)detail::is_sax_static_asserts {}; } @@ -15512,7 +15512,7 @@ class binary_writer }; string_t key = "_ArrayType_"; - auto it = bjdtype.find(value.at(key)); + auto it = bjdtype.find(static_cast(value.at(key))); if (it == bjdtype.end()) { return true;