-
Notifications
You must be signed in to change notification settings - Fork 26
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
Char and int comparison #7
Comments
The condition cannot evaluate to true because of natorder/NaturalOrderComparator.java Line 42 in ab9e2df
If both ca and cb are 0 (space, non-digit) bias will be returned. So L51 is either redundant or should be changed to check for 48 or '0' respectively |
The line is indeed redundant: if both |
Thank you for the clarification |
Fixed by #9 |
Line 51 is never true for all the examples I put into it.
natorder/NaturalOrderComparator.java
Line 51 in ab9e2df
Is it supposed to compare with 0 (space) or with 48 (0)?
if (ca == '0' && cb == '0') {
The text was updated successfully, but these errors were encountered: