Skip to content

Commit 65d1eca

Browse files
ecm-pushbxH. Peter Anvin
authored andcommitted
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 <[email protected]>
1 parent e095943 commit 65d1eca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

asm/preproc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1819,7 +1819,7 @@ static void delete_Blocks(void)
18191819
static inline Token *alloc_Token(void)
18201820
{
18211821
Token *t;
1822-
nasm_new(*t);
1822+
nasm_new(t);
18231823
return t;
18241824
}
18251825

0 commit comments

Comments
 (0)