summaryrefslogtreecommitdiff
path: root/stdscan.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-08-31 00:16:10 +0000
committerH. Peter Anvin <hpa@zytor.com>2007-08-31 00:16:10 +0000
commit2c29a0b264195cb3e93f29ed841796ebac25c193 (patch)
tree048a301c9bb5f75a5763109c7153759f022410fb /stdscan.c
parentfb5a599c8ac2c67139e2d37c0b7031ea75e1da84 (diff)
downloadnasm-2c29a0b264195cb3e93f29ed841796ebac25c193.tar.gz
Minor cleanup; remove duplication of names.c
Diffstat (limited to 'stdscan.c')
-rw-r--r--stdscan.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/stdscan.c b/stdscan.c
index 4a5f296d..d4ad696d 100644
--- a/stdscan.c
+++ b/stdscan.c
@@ -74,8 +74,8 @@ int stdscan(void *private_data, struct tokenval *tv)
if (isidstart(*stdscan_bufptr) ||
(*stdscan_bufptr == '$' && isidstart(stdscan_bufptr[1]))) {
/* now we've got an identifier */
- uint32_t i;
int is_sym = FALSE;
+ int t;
if (*stdscan_bufptr == '$') {
is_sym = TRUE;
@@ -99,8 +99,8 @@ int stdscan(void *private_data, struct tokenval *tv)
*r = '\0';
/* right, so we have an identifier sitting in temp storage. now,
* is it actually a register or instruction name, or what? */
- if (nasm_token_hash(ourcopy, tv) != -1)
- return tv->t_type;
+ if ((t = nasm_token_hash(ourcopy, tv)) != -1)
+ return t;
else
return tv->t_type = TOKEN_ID;
} else if (*stdscan_bufptr == '$' && !isnumchar(stdscan_bufptr[1])) {