-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bugfix in JSONObject.Similar() #611
Comments
Ref:
I agree, this looks like an oversight in the implementation and a bug |
Agreed, good catch @eyalb40, and thanks for the heads-up. Feel free to submit a pull request to fix this, if you want. |
stleary
added a commit
that referenced
this issue
Jul 18, 2021
Fixed in #613 |
@stleary, you should also correct the |
stleary
added a commit
that referenced
this issue
Jul 19, 2021
stleary
added a commit
that referenced
this issue
Jul 26, 2021
Fixes Issue #611 JsonObject.similar() returns after number entry check
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I JSONObject.Similar() you return true\false after comparing a number property. Should only return if false.
Should replace
return isNumberSimilar((Number)valueThis, (Number)valueOther);
with
if (!isNumberSimilar((Number)valueThis, (Number)valueOther))
return false;
The text was updated successfully, but these errors were encountered: