From 5cc3ef073a06f62811ccb8c7d36ba166cf9001ac Mon Sep 17 00:00:00 2001 From: Vitalii Date: Mon, 8 Dec 2025 02:42:46 +0100 Subject: [PATCH] Fixed "always false" typo in double comparison --- include/jsoncons/basic_json.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/jsoncons/basic_json.hpp b/include/jsoncons/basic_json.hpp index 432e7e967..76d4c1e14 100644 --- a/include/jsoncons/basic_json.hpp +++ b/include/jsoncons/basic_json.hpp @@ -1765,7 +1765,7 @@ namespace jsoncons { { return -1; } - if (val2 >= 0 && val2 < 0) + if (val2 < 0 && val1 >= 0) { return 1; }