diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | bignum.c | 6 |
2 files changed, 7 insertions, 3 deletions
@@ -1,3 +1,7 @@ +Thu Jan 3 02:44:34 2008 Tanaka Akira <akr@fsij.org> + + * bignum.c (conv_digit): use ISDIGIT, ISLOWER and ISUPPER. + Wed Jan 2 23:50:15 2008 Tanaka Akira <akr@fsij.org> * util.c (ruby_strtoul): "0x", "+" and "-" is not a valid integer. @@ -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) { |