Fix integer max value
This commit is contained in:
parent
4801399273
commit
d20f54b8d6
|
@ -122,7 +122,7 @@ bool isintcons(STRING* tk) {
|
||||||
if(!isint(tk->str))
|
if(!isint(tk->str))
|
||||||
return false;
|
return false;
|
||||||
int val = atoi(tk->str);
|
int val = atoi(tk->str);
|
||||||
return val >= 0 && val <= 32767;
|
return val <= 65535;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool isidentifier(STRING* tk) {
|
bool isidentifier(STRING* tk) {
|
||||||
|
|
Loading…
Reference in New Issue