Skip to content

Commit 5cc3ef0

Browse files
committed
Fixed "always false" typo in double comparison
1 parent 9a9a05f commit 5cc3ef0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/jsoncons/basic_json.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1765,7 +1765,7 @@ namespace jsoncons {
17651765
{
17661766
return -1;
17671767
}
1768-
if (val2 >= 0 && val2 < 0)
1768+
if (val2 < 0 && val1 >= 0)
17691769
{
17701770
return 1;
17711771
}

0 commit comments

Comments
 (0)