summaryrefslogtreecommitdiff
path: root/nasmlib.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-10-15 20:06:06 -0700
committerH. Peter Anvin <hpa@zytor.com>2007-10-15 20:06:06 -0700
commitb2f6fef421db2c5f7f0dbc5b36e1a546875af7d6 (patch)
tree6c0e71e2db08499b2d2229cef5df1f599f5fea21 /nasmlib.c
parent826ffa9c8e304dae3fd0afe808060bf2d89130f1 (diff)
downloadnasm-b2f6fef421db2c5f7f0dbc5b36e1a546875af7d6.tar.gz
Recognize 'd', 't' and 'y' as radix suffixes
'd', 't' and 'y' now recognized as radix suffixes.
Diffstat (limited to 'nasmlib.c')
-rw-r--r--nasmlib.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/nasmlib.c b/nasmlib.c
index 8c81d6c0..1951cffe 100644
--- a/nasmlib.c
+++ b/nasmlib.c
@@ -237,8 +237,10 @@ int64_t readnum(char *str, bool *error)
radix = 16, q--;
else if (q[-1] == 'Q' || q[-1] == 'q' || q[-1] == 'O' || q[-1] == 'o')
radix = 8, q--;
- else if (q[-1] == 'B' || q[-1] == 'b')
+ else if (q[-1] == 'B' || q[-1] == 'b' || q[-1] == 'Y' || q[-1] == 'y')
radix = 2, q--;
+ else if (q[-1] == 'D' || q[-1] == 'd' || q[-1] == 'T' || q[-1] == 't')
+ radix = 10, q--;
else
radix = 10;