summaryrefslogtreecommitdiff
path: root/nasm.h
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-10-24 15:29:28 -0700
committerH. Peter Anvin <hpa@zytor.com>2007-10-24 15:29:51 -0700
commitc2df282092512917e558f56797f2e2be889de61c (patch)
tree0907bf7ea7cd4f859201e9bb0d6b1c8bfdbe10a1 /nasm.h
parentf6816b25bf1c4852765a15564df3bc6a5081dfe1 (diff)
downloadnasm-c2df282092512917e558f56797f2e2be889de61c.tar.gz
nasm-c2df282092512917e558f56797f2e2be889de61c.tar.bz2
nasm-c2df282092512917e558f56797f2e2be889de61c.zip
Fix the handling of floating-point tokens in the preprocessor
Correct the handling of floating-point tokens in the preprocessor. The preprocessor scanner and the main scanner really are painfully divergent for no good reason.
Diffstat (limited to 'nasm.h')
-rw-r--r--nasm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/nasm.h b/nasm.h
index 8780990..71583f5 100644
--- a/nasm.h
+++ b/nasm.h
@@ -312,7 +312,7 @@ extern Preproc nasmpp;
/* Ditto for numeric constants. */
#define isnumstart(c) ( isdigit(c) || (c)=='$' )
-#define isnumchar(c) ( isalnum(c) )
+#define isnumchar(c) ( isalnum(c) || (c)=='_' )
/* This returns the numeric value of a given 'digit'. */