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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user