aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin (Intel) <hpa@zytor.com>2020-09-11 18:36:26 -0700
committerH. Peter Anvin (Intel) <hpa@zytor.com>2020-09-11 18:37:35 -0700
commit6f01aca07cf35a9e43f94991e4abaabb8511eba6 (patch)
tree7d80f9ef3c3ade46379f55c53e37858f2e6edeaa
parented63993519cb308edbd49c40c8f2486947bd35f3 (diff)
downloadnasm-6f01aca07cf35a9e43f94991e4abaabb8511eba6.tar.gz
nasm-6f01aca07cf35a9e43f94991e4abaabb8511eba6.tar.xz
nasm-6f01aca07cf35a9e43f94991e4abaabb8511eba6.zip
asm/preproc.c: in tokenize() advance pointer past ? for TOKEN_QMARK
When we process a TOKEN_QMARK we also need to advance p, in order to get the proper start for the next token. This fixes travis test br3392707. Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
-rw-r--r--asm/preproc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/asm/preproc.c b/asm/preproc.c
index bd385157..629fe5df 100644
--- a/asm/preproc.c
+++ b/asm/preproc.c
@@ -1475,6 +1475,7 @@ static Token *tokenize(const char *line)
} else if (*p == '?' && !nasm_isidchar(p[1])) {
/* ? operator */
type = TOKEN_QMARK;
+ p++;
} else if (nasm_isidstart(*p) || (*p == '$' && nasm_isidstart(p[1]))) {
/*
* A regular identifier. This includes keywords, which are not