Skip to content

Commit 1fe7f98

Browse files
Merge pull request #666 from beryll1um/fix/double-typo
Fixed "always false" typo in double comparison
2 parents 6a10c10 + 5cc3ef0 commit 1fe7f98

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)