summaryrefslogtreecommitdiff
path: root/stdscan.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-10-19 18:33:57 -0700
committerH. Peter Anvin <hpa@zytor.com>2007-10-19 18:33:57 -0700
commit449e04b33036f4cca13526c2e62070aa8421ca7e (patch)
treefaf9289c350bdd36a53d0dfa2f0fc7b4ef6cb0bd /stdscan.c
parent2d25ce45553898e4bc915548f8cff95f7616a519 (diff)
downloadnasm-449e04b33036f4cca13526c2e62070aa8421ca7e.tar.gz
nasm-449e04b33036f4cca13526c2e62070aa8421ca7e.tar.bz2
nasm-449e04b33036f4cca13526c2e62070aa8421ca7e.zip
Allow $-prefixed hexadecimal FP as an alternative to 0x
Since we allow the prefix $ instead of 0x for integer constants, do the same for floating point. No suffix support at this time; we may want to consider if that would be appropriate.
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 3f74869..9235b08 100644
--- a/stdscan.c
+++ b/stdscan.c
@@ -140,7 +140,7 @@ int stdscan(void *private_data, struct tokenval *tv)
}
} else if (c == 'H' || c == 'h') {
has_h = true;
- } else if (c == 'P' || c == 'p') {
+ } else if (is_hex & (c == 'P' || c == 'p')) {
is_float = true;
if (*stdscan_bufptr == '+' || *stdscan_bufptr == '-')
stdscan_bufptr++;