Skip to content

Commit aba82d9

Browse files
committed
isNumericChar() - switch comparison order
1 parent 4a468d1 commit aba82d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/json/NumberConversionUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ static Number stringToNumber(final String input) throws NumberFormatException {
9090
* @return true if the character is a numeric digit, false otherwise.
9191
*/
9292
private static boolean isNumericChar(char c) {
93-
return (c >= '0' && c <= '9');
93+
return (c <= '9' && c >= '0');
9494
}
9595

9696
/**

0 commit comments

Comments
 (0)