[nasm:master] preproc: fix misparsing of << as right shift
nasm-bot for Oleg Oshmyan
chortos at inbox.lv
Mon Nov 7 17:12:17 PST 2022
Commit-ID: 80a4e8e4545b364708b0a62b789e2a3cda191ff3
Gitweb: http://repo.or.cz/w/nasm.git?a=commitdiff;h=80a4e8e4545b364708b0a62b789e2a3cda191ff3
Author: Oleg Oshmyan <chortos at inbox.lv>
AuthorDate: Sat, 18 Sep 2021 04:26:39 +0300
Committer: Oleg Oshmyan <chortos at inbox.lv>
CommitDate: Tue, 21 Sep 2021 23:30:53 +0300
preproc: fix misparsing of << as right shift
Regression in commit 20e0d616dc954d567c8bf2c7e11cc5d6c10ac544.
Independently discovered and fixed by C. Masloch:
https://bugzilla.nasm.us/show_bug.cgi?id=3392747
Signed-off-by: Oleg Oshmyan <chortos at inbox.lv>
---
asm/preproc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/asm/preproc.c b/asm/preproc.c
index d1b9b31b..cb1669da 100644
--- a/asm/preproc.c
+++ b/asm/preproc.c
@@ -1613,7 +1613,7 @@ static Token *tokenize(const char *line)
case '<':
if (*p == '<') {
p++;
- type = TOKEN_SHR;
+ type = TOKEN_SHL;
if (*p == '<')
p++;
} else if (*p == '=') {
More information about the Nasm-commits
mailing list