diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-02 17:48:20 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-02 17:48:20 +0000 |
commit | aabc1964017954e2727636d544d8221752e78c91 (patch) | |
tree | fb3a936a66b46cfd683f499aedb6dc96eae16e3c /bignum.c | |
parent | 8097a860bc9a9fd1a3056e8594c534260e6245c9 (diff) | |
download | ruby-aabc1964017954e2727636d544d8221752e78c91.tar.gz ruby-aabc1964017954e2727636d544d8221752e78c91.tar.xz ruby-aabc1964017954e2727636d544d8221752e78c91.zip |
* bignum.c (conv_digit): use ISDIGIT, ISLOWER and ISUPPER.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14855 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bignum.c')
-rw-r--r-- | bignum.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -380,9 +380,9 @@ rb_cstr_to_inum(const char *str, int base, int badcheck) #define conv_digit(c) \ (!ISASCII(c) ? -1 : \ - isdigit(c) ? ((c) - '0') : \ - islower(c) ? ((c) - 'a' + 10) : \ - isupper(c) ? ((c) - 'A' + 10) : \ + ISDIGIT(c) ? ((c) - '0') : \ + ISLOWER(c) ? ((c) - 'a' + 10) : \ + ISUPPER(c) ? ((c) - 'A' + 10) : \ -1) if (!str) { |