summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2002-05-30 21:30:33 +0000
committerH. Peter Anvin <hpa@zytor.com>2002-05-30 21:30:33 +0000
commit7cf897e7aeff61444c911997056024180d98b53b (patch)
treeb0625471f3b8ed53dd2e1083f7867365e5e0c9a1
parent585d422f147d2be8ac3301ab3c3436c35944ec47 (diff)
downloadnasm-7cf897e7aeff61444c911997056024180d98b53b.tar.gz
Correctly recognize $$ as TOKEN_BASE
-rw-r--r--preproc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/preproc.c b/preproc.c
index 34d14f36..267885da 100644
--- a/preproc.c
+++ b/preproc.c
@@ -1096,7 +1096,7 @@ ppscan(void *private_data, struct tokenval *tokval)
if (tline->text[0] == '$' && !tline->text[1])
return tokval->t_type = TOKEN_HERE;
- if (tline->text[0] == '$' && tline->text[1] == '$' && !tline->text[1])
+ if (tline->text[0] == '$' && tline->text[1] == '$' && !tline->text[2])
return tokval->t_type = TOKEN_BASE;
if (tline->type == TOK_ID)