fix for one digit numbers

This commit is contained in:
CPunch 2021-01-18 21:54:31 -06:00
parent f8884c494c
commit c7116ab752
1 changed files with 2 additions and 2 deletions

View File

@ -265,9 +265,9 @@ CToken parseNumber(CLexState *state) {
next(state);
return makeToken(state, TOKEN_BINNUMBER);
default:
default: // it's a one digit number!!!!!
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
}