From ab25de05f7316a745cb6392827d42870b9bc0a35 Mon Sep 17 00:00:00 2001 From: jprochazk Date: Sun, 19 Jul 2020 10:51:13 +0200 Subject: [PATCH] fix: return -> result.push_back --- include/nlohmann/detail/input/binary_reader.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/nlohmann/detail/input/binary_reader.hpp b/include/nlohmann/detail/input/binary_reader.hpp index 45fcfff4..f0c73f1b 100644 --- a/include/nlohmann/detail/input/binary_reader.hpp +++ b/include/nlohmann/detail/input/binary_reader.hpp @@ -2278,7 +2278,7 @@ class binary_reader success = false; break; } - return std::char_traits::to_char_type(current); + result.push_back(std::char_traits::to_char_type(current)); }; return success; } @@ -2310,7 +2310,7 @@ class binary_reader success = false; break; } - return static_cast(current); + result.push_back(static_cast(current)); } return success; }