From 17f5b3f4c2619b3443c01492ea9109e8b1c442a3 Mon Sep 17 00:00:00 2001 From: Eric Wieser Date: Mon, 11 Jul 2022 17:02:00 +0100 Subject: [PATCH] decltype not typeof It's been too long since I wrote C++... --- include/nlohmann/detail/input/lexer.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/nlohmann/detail/input/lexer.hpp b/include/nlohmann/detail/input/lexer.hpp index 9809b4e89..f516dd7a2 100644 --- a/include/nlohmann/detail/input/lexer.hpp +++ b/include/nlohmann/detail/input/lexer.hpp @@ -1250,7 +1250,7 @@ scan_number_done: if (errno == 0) { value_unsigned = static_cast(x); - if (static_cast(value_unsigned) == x) + if (static_cast(value_unsigned) == x) { return token_type::value_unsigned; } @@ -1266,7 +1266,7 @@ scan_number_done: if (errno == 0) { value_integer = static_cast(x); - if (static_cast(value_integer) == x) + if (static_cast(value_integer) == x) { return token_type::value_integer; }