Reset digit to 0 for inputs starting with "0x".
This commit is contained in:
parent
9bd6890201
commit
444897ec50
@ -55,7 +55,7 @@ again:
|
||||
if (*cp == '0')
|
||||
digit = 1, base = 8, cp++;
|
||||
if (*cp == 'x' || *cp == 'X')
|
||||
base = 16, cp++;
|
||||
digit = 0, base = 16, cp++;
|
||||
while ((c = *cp) != 0) {
|
||||
if (isdigit(c)) {
|
||||
if (base == 8 && (c == '8' || c == '9'))
|
||||
|
Loading…
x
Reference in New Issue
Block a user