ruby-changes:2818
From: ko1@a...
Date: 19 Dec 2007 00:12:57 +0900
Subject: [ruby-changes:2818] matz - Ruby:r14309 (trunk): * bignum.c (rb_cstr_to_inum): wrong radix check. a patch from
matz 2007-12-19 00:10:37 +0900 (Wed, 19 Dec 2007) New Revision: 14309 Modified files: trunk/ChangeLog trunk/bignum.c trunk/version.h Log: * bignum.c (rb_cstr_to_inum): wrong radix check. a patch from Yusuke ENDOH <mame AT tsg.ne.jp> in [ruby-dev:32628]. * bignum.c (big2str_find_n1): ditto. http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/version.h?r1=14309&r2=14308 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=14309&r2=14308 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/bignum.c?r1=14309&r2=14308 Index: ChangeLog =================================================================== --- ChangeLog (revision 14308) +++ ChangeLog (revision 14309) @@ -1,3 +1,10 @@ +Wed Dec 19 00:09:19 2007 Yukihiro Matsumoto <matz@r...> + + * bignum.c (rb_cstr_to_inum): wrong radix check. a patch from + Yusuke ENDOH <mame AT tsg.ne.jp> in [ruby-dev:32628]. + + * bignum.c (big2str_find_n1): ditto. + Tue Dec 18 23:53:53 2007 Nobuyoshi Nakada <nobu@r...> * compile.c (iseq_compile_each): fix for segfault. [ruby-dev:31372] Index: version.h =================================================================== --- version.h (revision 14308) +++ version.h (revision 14309) @@ -1,7 +1,7 @@ #define RUBY_VERSION "1.9.0" -#define RUBY_RELEASE_DATE "2007-12-18" +#define RUBY_RELEASE_DATE "2007-12-19" #define RUBY_VERSION_CODE 190 -#define RUBY_RELEASE_CODE 20071218 +#define RUBY_RELEASE_CODE 20071219 #define RUBY_PATCHLEVEL 0 #define RUBY_VERSION_MAJOR 1 @@ -9,7 +9,7 @@ #define RUBY_VERSION_TEENY 0 #define RUBY_RELEASE_YEAR 2007 #define RUBY_RELEASE_MONTH 12 -#define RUBY_RELEASE_DAY 18 +#define RUBY_RELEASE_DAY 19 #ifdef RUBY_EXTERN RUBY_EXTERN const char ruby_version[]; Index: bignum.c =================================================================== --- bignum.c (revision 14308) +++ bignum.c (revision 14309) @@ -801,7 +801,7 @@ }; long bits; - if (base < 2 && 36 < base) + if (base < 2 || 36 < base) rb_bug("illegal radix %d", base); if (FIXNUM_P(x)) { @@ -908,7 +908,7 @@ return rb_str_new2("0"); } - if (base < 2 && 36 < base) + if (base < 2 || 36 < base) rb_raise(rb_eArgError, "illegal radix %d", base); n2 = big2str_find_n1(x, base); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml