summaryrefslogtreecommitdiff
path: root/stdscan.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-10-11 00:05:31 -0700
committerH. Peter Anvin <hpa@zytor.com>2007-10-11 00:05:57 -0700
commit70055964fc24699c07c515dd9a603196ba06a654 (patch)
tree10deb40fda3517be5d7b21b191429bcfd220d15a /stdscan.c
parent54901e1785dcc7e8aec3198f58f580165856672f (diff)
downloadnasm-70055964fc24699c07c515dd9a603196ba06a654.tar.gz
nasm-70055964fc24699c07c515dd9a603196ba06a654.tar.bz2
nasm-70055964fc24699c07c515dd9a603196ba06a654.zip
Additional uses of bool and enum
Proper use of bool and enum makes code easier to debug. Do more of it. In particular, we really should stomp out any residual uses of magic constants that aren't enums or, in some cases, even #defines.
Diffstat (limited to 'stdscan.c')
-rw-r--r--stdscan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stdscan.c b/stdscan.c
index 7305b31..64e7798 100644
--- a/stdscan.c
+++ b/stdscan.c
@@ -115,7 +115,7 @@ int stdscan(void *private_data, struct tokenval *tv)
}
return tv->t_type = TOKEN_HERE;
} else if (isnumstart(*stdscan_bufptr)) { /* now we've got a number */
- int rn_error;
+ bool rn_error;
r = stdscan_bufptr++;
while (isnumchar(*stdscan_bufptr))