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@zytor.com>
This commit is contained in:
C. Masloch 2022-11-21 11:21:47 -08:00 committed by H. Peter Anvin
parent 516fbba03e
commit e0959432fe

@ -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;
}