[nasm:master] preproc: fix the expansion of %00 (token type change)
nasm-bot for C. Masloch
pushbx at ulukai.org
Mon Nov 21 11:24:14 PST 2022
Commit-ID: e0959432fe24c597e0bfb07412276f622d93a4b9
Gitweb: http://repo.or.cz/w/nasm.git?a=commitdiff;h=e0959432fe24c597e0bfb07412276f622d93a4b9
Author: C. Masloch <pushbx at ulukai.org>
AuthorDate: Mon, 21 Nov 2022 11:21:47 -0800
Committer: H. Peter Anvin <hpa at zytor.com>
CommitDate: Mon, 21 Nov 2022 11:21:47 -0800
preproc: fix the expansion of %00 (token type change)
Fix the expansion of the %00 mmacro parameter; broken due to a missing
change of the token type.
Fixes: https://bugzilla.nasm.us/show_bug.cgi?id=3392803
Signed-off-by: H. Peter Anvin <hpa at zytor.com>
---
asm/preproc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/asm/preproc.c b/asm/preproc.c
index a613af2e..4504b111 100644
--- a/asm/preproc.c
+++ b/asm/preproc.c
@@ -7765,7 +7765,7 @@ static Token *pp_tokline(void)
if (mmac) {
const Token *t;
list_for_each(t, tline) {
- if (t->type == TOKEN_PREPROC_ID &&
+ if (t->type == TOKEN_MMACRO_PARAM &&
!memcmp(t->text.a, "%00", 4))
mmac->capture_label = true;
}
More information about the Nasm-commits
mailing list