mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-04-12 18:40:23 +08:00
preproc: fix incorrect use of nasm_new() in alloc_Token()
The argument to nasm_new() is the pointer, not the indirection from the pointer. This code is only relevant when compiled without token recycling (TOKEN_BLOCKSIZE not set), but it is still wrong... Signed-off-by: H. Peter Anvin <hpa@zytor.com>
This commit is contained in:
parent
e0959432fe
commit
65d1eca5c6
@ -1819,7 +1819,7 @@ static void delete_Blocks(void)
|
||||
static inline Token *alloc_Token(void)
|
||||
{
|
||||
Token *t;
|
||||
nasm_new(*t);
|
||||
nasm_new(t);
|
||||
return t;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user