summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2024-06-03 20:20:30 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2024-06-03 20:20:30 -0500
commit41bcd8b5147acf869cd78c1f283800a26eb861f2 (patch)
tree3fcfd36b30463cdc773db3407e624d82ace2d3a5
parent4f8a406b0a6bb3669e63dce5074fdd9b15be3d9b (diff)
downloadhorizon-41bcd8b5147acf869cd78c1f283800a26eb861f2.tar.gz
horizon-41bcd8b5147acf869cd78c1f283800a26eb861f2.tar.bz2
horizon-41bcd8b5147acf869cd78c1f283800a26eb861f2.tar.xz
horizon-41bcd8b5147acf869cd78c1f283800a26eb861f2.zip
JSON: Fix error on GCC 10+
See-also: https://github.com/nlohmann/json/pull/2144
-rw-r--r--3rdparty/json.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/3rdparty/json.hpp b/3rdparty/json.hpp
index 06da815..58e3f27 100644
--- a/3rdparty/json.hpp
+++ b/3rdparty/json.hpp
@@ -8491,7 +8491,7 @@ scan_number_done:
std::string result;
for (const auto c : token_string)
{
- if ('\x00' <= c and c <= '\x1F')
+ if (static_cast<unsigned char>(c) <= '\x1F')
{
// escape control characters
std::array<char, 9> cs{{}};