mirror of
https://github.com/CPunch/Cosmo.git
synced 2024-11-22 07:20:05 +00:00
fix for one digit numbers
This commit is contained in:
parent
f8884c494c
commit
c7116ab752
@ -265,9 +265,9 @@ CToken parseNumber(CLexState *state) {
|
|||||||
next(state);
|
next(state);
|
||||||
|
|
||||||
return makeToken(state, TOKEN_BINNUMBER);
|
return makeToken(state, TOKEN_BINNUMBER);
|
||||||
default:
|
default: // it's a one digit number!!!!!
|
||||||
if (!isNumerical(peek(state)))
|
if (!isNumerical(peek(state)))
|
||||||
return makeError(state, "Unrecognized number encoding!");
|
return makeToken(state, TOKEN_NUMBER);
|
||||||
// if it is a number, fall through and parse normally
|
// if it is a number, fall through and parse normally
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user