apparently #0 is a valid builtin number, used for some NULL funcs

This commit is contained in:
Wolfgang (Blub) Bumiller 2012-11-30 21:25:18 +01:00
parent 2a2465c884
commit cda62cef20

View file

@ -3952,7 +3952,7 @@ skipvar:
parseerror(parser, "builtin number must be an integer constant");
break;
}
if (parser_token(parser)->constval.i <= 0) {
if (parser_token(parser)->constval.i < 0) {
parseerror(parser, "builtin number must be an integer greater than zero");
break;
}