diff options
author | H. Peter Anvin <hpa@zytor.com> | 2007-10-15 20:06:06 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2007-10-15 20:06:06 -0700 |
commit | b2f6fef421db2c5f7f0dbc5b36e1a546875af7d6 (patch) | |
tree | 6c0e71e2db08499b2d2229cef5df1f599f5fea21 /nasmlib.c | |
parent | 826ffa9c8e304dae3fd0afe808060bf2d89130f1 (diff) | |
download | nasm-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.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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; |