diff --git a/include/nlohmann/detail/input/binary_reader.hpp b/include/nlohmann/detail/input/binary_reader.hpp index 2946611c..d2052234 100644 --- a/include/nlohmann/detail/input/binary_reader.hpp +++ b/include/nlohmann/detail/input/binary_reader.hpp @@ -820,7 +820,7 @@ class binary_reader */ bool get_cbor_object(const std::size_t len) { - if (not JSON_UNLIKELY(sax->start_object(len))) + if (JSON_UNLIKELY(not sax->start_object(len))) { return false; } diff --git a/single_include/nlohmann/json.hpp b/single_include/nlohmann/json.hpp index d85f40f7..228f99ea 100644 --- a/single_include/nlohmann/json.hpp +++ b/single_include/nlohmann/json.hpp @@ -7273,7 +7273,7 @@ class binary_reader */ bool get_cbor_object(const std::size_t len) { - if (not JSON_UNLIKELY(sax->start_object(len))) + if (JSON_UNLIKELY(not sax->start_object(len))) { return false; }