summaryrefslogtreecommitdiff
path: root/modules/preprocs/nasm/nasm-pp.c
diff options
context:
space:
mode:
Diffstat (limited to 'modules/preprocs/nasm/nasm-pp.c')
-rw-r--r--modules/preprocs/nasm/nasm-pp.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/preprocs/nasm/nasm-pp.c b/modules/preprocs/nasm/nasm-pp.c
index 27a8cc6c..5ea650e3 100644
--- a/modules/preprocs/nasm/nasm-pp.c
+++ b/modules/preprocs/nasm/nasm-pp.c
@@ -2249,7 +2249,10 @@ if_condition(Token * tline, int i)
case PP_ELIFNUM:
case PP_IFNNUM:
case PP_ELIFNNUM:
- j = (t->type == TOK_NUMBER);
+ while (tok_is_(t, "+") || tok_is_(t, "-") ||
+ tok_type_(t, TOK_WHITESPACE))
+ t = t->next;
+ j = (t && t->type == TOK_NUMBER);
break;
case PP_IFSTR:
case PP_ELIFSTR: