diff options
author | H. Peter Anvin <hpa@zytor.com> | 2007-10-19 14:10:35 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2007-10-19 14:10:35 -0700 |
commit | 37d88e4125865eef3544f1ee072436fc12dbe6fb (patch) | |
tree | 84ab64d9c5b065e2bed961760b9bdfd49d4e101e /test | |
parent | f5f3d70d6da2ce876496033a388dd1656c5a59cd (diff) | |
download | nasm-37d88e4125865eef3544f1ee072436fc12dbe6fb.tar.gz nasm-37d88e4125865eef3544f1ee072436fc12dbe6fb.tar.bz2 nasm-37d88e4125865eef3544f1ee072436fc12dbe6fb.zip |
Don't confuse suffixed hexadecimal with floating-point
1e30 is a floating-point constant, but 1e30h is not. The scanner
won't know that until it sees the "h", so make sure we keep enough
state to be able to distinguish "1e30" (a possible hex constant) from
"1.e30", "1e+30" or "1.0" (unabiguously floating-point.)
Diffstat (limited to 'test')
-rw-r--r-- | test/uscore.asm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/uscore.asm b/test/uscore.asm index 6cb99ea..2bc99c2 100644 --- a/test/uscore.asm +++ b/test/uscore.asm @@ -1,6 +1,10 @@ dd 0x1234_5678 dd 305_419_896 ; Same number as above it dd 0x1e16 ; NOT a floating-point number! + dd 1e16h ; NOT a floating-point number! + dd 1e16_h ; NOT a floating-point number! + dd $1e16 ; NOT a floating-point number! + dd $1e16 ; NOT a floating-point number! dd 1e16 ; THIS is a floating-point number! dd 1e+16 dd 1.e+16 |