0
0
mirror of https://github.com/netwide-assembler/nasm.git synced 2025-11-08 23:27:15 -05:00

listing: modify active_list_options, not just list_options

If the assembly stops after the first pass, only active_list_options
will be seen; this is also the value that applies for local changes in
the list options. Thus, both variables need to be tweaked.

Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
This commit is contained in:
H. Peter Anvin (Intel)
2025-10-09 20:09:33 -07:00
parent 7e82d9d1e3
commit 4cdb62ffb6

View File

@@ -365,10 +365,13 @@ static void list_update_options(const char *str)
break;
default:
mask = list_option_mask(c);
if (state)
if (state) {
list_options |= mask;
else
active_list_options |= mask;
} else {
list_options &= ~mask;
active_list_options &= ~mask;
}
break;
}
}