From 9d52fda376509f22bee858b0190eb0b289734b90 Mon Sep 17 00:00:00 2001 From: akr Date: Wed, 2 Jan 2008 17:48:20 +0000 Subject: * bignum.c (conv_digit): use ISDIGIT, ISLOWER and ISUPPER. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14855 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- bignum.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bignum.c') diff --git a/bignum.c b/bignum.c index 283a4f4897..227e7a0560 100644 --- a/bignum.c +++ b/bignum.c @@ -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) { -- cgit v1.2.3