mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-03-21 18:30:52 +00:00
additional/superfluous check removed
This commit is contained in:
parent
09fa41318d
commit
e7f8647d08
1 changed files with 2 additions and 3 deletions
5
parser.c
5
parser.c
|
@ -208,7 +208,7 @@ bool parser_do(parser_t *parser)
|
|||
return false;
|
||||
|
||||
if (parser->tok == '#') {
|
||||
if (!func) {
|
||||
if (!isfunc || !func) {
|
||||
parseerror(parser, "unexpected builtin number, '%s' is not a function", var->name);
|
||||
return false;
|
||||
}
|
||||
|
@ -225,8 +225,7 @@ bool parser_do(parser_t *parser)
|
|||
return false;
|
||||
}
|
||||
|
||||
if (func)
|
||||
func->builtin = -parser_token(parser)->constval.i;
|
||||
func->builtin = -parser_token(parser)->constval.i;
|
||||
} else if (parser->tok == '{') {
|
||||
/* function body */
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue