mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Fix bigint hex parsing #1945.
This commit is contained in:
@@ -92,9 +92,9 @@ fn BigInt*! BigInt.init_string_radix(&self, String value, int radix)
|
||||
case '0'..'9':
|
||||
pos_val -= '0';
|
||||
case 'A'..'Z':
|
||||
pos_val -= 'A' + 10;
|
||||
pos_val -= 'A' - 10;
|
||||
case 'a'..'z':
|
||||
pos_val -= 'a' + 10;
|
||||
pos_val -= 'a' - 10;
|
||||
default:
|
||||
return NumberConversion.MALFORMED_INTEGER?;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user