diff options
author | H. Peter Anvin <hpa@zytor.com> | 2019-10-07 21:29:05 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2019-10-07 21:29:05 -0700 |
commit | d03a6c8ffedd1496221eca5f02ba0215794cfaf9 (patch) | |
tree | cc520c0f89f26b0887db4a4f5f9bdd6098e3b847 | |
parent | d983b6223304fb9bca16c20df0d5349605f25541 (diff) | |
download | nasm-d03a6c8ffedd1496221eca5f02ba0215794cfaf9.tar.gz |
preproc: fix the detection of the >= operator
There are *four* operators starting with ">": > >> >>> and >=.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r-- | asm/preproc.c | 4 | ||||
-rw-r--r-- | test/exitrep.asm | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/asm/preproc.c b/asm/preproc.c index 3ee36c10..14a73885 100644 --- a/asm/preproc.c +++ b/asm/preproc.c @@ -1615,7 +1615,9 @@ static Token *tokenize(const char *line) p++; if (*p == '>') p++; - } + } else if (*p == '=') { + p++; + } break; case '<': diff --git a/test/exitrep.asm b/test/exitrep.asm index 3be87055..4e1b6e3c 100644 --- a/test/exitrep.asm +++ b/test/exitrep.asm @@ -6,7 +6,7 @@ %exitrep %endif mov ebx,i - %ifn i < 3 + %if i >= 3 %error iteration i should not be seen %endif %assign i i+1 |