Skip to content

Commit

Permalink
fixed files form Lang #16
Browse files Browse the repository at this point in the history
  • Loading branch information
tdurieux committed Mar 7, 2017
1 parent b1b53d8 commit 95eac8c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ public static Number createNumber(String str) throws NumberFormatException {
// a wrong value.
return null;
}
if (str.startsWith("0x") || str.startsWith("-0x")) {
if (str.startsWith("0x") || str.startsWith("-0x") || str.startsWith("0X") || str.startsWith("-0X")) {
return createInteger(str);
}
char lastChar = str.charAt(str.length() - 1);
Expand Down

0 comments on commit 95eac8c

Please sign in to comment.