Partial fix (e.g. if (somepointer) but not if (!somepointer)) for issue #5
This commit is contained in:
parent
1ff1ef9cfb
commit
09501d22fd
|
@ -1907,7 +1907,8 @@ long ExpressionParseInt(struct ParseState *Parser)
|
|||
ProgramFail(Parser, "expression expected");
|
||||
|
||||
if (Parser->Mode == RunModeRun) {
|
||||
if (!IS_NUMERIC_COERCIBLE(Val))
|
||||
// if (!IS_NUMERIC_COERCIBLE(Val))
|
||||
if (!IS_NUMERIC_COERCIBLE_PLUS_POINTERS(Val, true))
|
||||
ProgramFail(Parser, "integer value expected instead of %t", Val->Typ);
|
||||
|
||||
Result = ExpressionCoerceInteger(Val);
|
||||
|
|
Loading…
Reference in a new issue