[nasm:master] preproc: fix incorrect use of nasm_new() in alloc_Token()
nasm-bot for C. Masloch
pushbx at ulukai.org
Mon Nov 21 11:27:04 PST 2022
Commit-ID: 65d1eca5c6cb8625144ef1eb2a5dc109473f1fc3
Gitweb: http://repo.or.cz/w/nasm.git?a=commitdiff;h=65d1eca5c6cb8625144ef1eb2a5dc109473f1fc3
Author: C. Masloch <pushbx at ulukai.org>
AuthorDate: Mon, 21 Nov 2022 11:24:18 -0800
Committer: H. Peter Anvin <hpa at zytor.com>
CommitDate: Mon, 21 Nov 2022 11:26:26 -0800
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 at zytor.com>
---
asm/preproc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/asm/preproc.c b/asm/preproc.c
index 4504b111..687431d9 100644
--- a/asm/preproc.c
+++ b/asm/preproc.c
@@ -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;
}
More information about the Nasm-commits
mailing list