ruby-changes:20466
From: usa <ko1@a...>
Date: Mon, 11 Jul 2011 15:19:58 +0900 (JST)
Subject: [ruby-changes:20466] usa:r32514 (ruby_1_9_3): * numeric.c (rb_num2ull): use FIX2LONG instead of FIX2ULONG. see
usa 2011-07-11 15:19:39 +0900 (Mon, 11 Jul 2011) New Revision: 32514 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=32514 Log: * numeric.c (rb_num2ull): use FIX2LONG instead of FIX2ULONG. see rb_num2ulong(). fixed the problem of ObjectSpace._id2ref of IL32LLP64 platforms, introduced at r32433. backported r32512 from trunk. Modified files: branches/ruby_1_9_3/ChangeLog branches/ruby_1_9_3/numeric.c Index: ruby_1_9_3/ChangeLog =================================================================== --- ruby_1_9_3/ChangeLog (revision 32513) +++ ruby_1_9_3/ChangeLog (revision 32514) @@ -1,3 +1,10 @@ +Mon Jul 11 15:17:03 2011 NAKAMURA Usaku <usa@r...> + + * numeric.c (rb_num2ull): use FIX2LONG instead of FIX2ULONG. see + rb_num2ulong(). fixed the problem of ObjectSpace._id2ref of IL32LLP64 + platforms, introduced at r32433. + backported r32512 from trunk. + Sun Jul 10 23:58:55 2011 Yuki Sonoda (Yugui) <yugui@y...> * version.h: 1.9.3 is no longer trunk. Index: ruby_1_9_3/numeric.c =================================================================== --- ruby_1_9_3/numeric.c (revision 32513) +++ ruby_1_9_3/numeric.c (revision 32514) @@ -1981,7 +1981,7 @@ rb_raise(rb_eTypeError, "no implicit conversion from nil"); case T_FIXNUM: - return (LONG_LONG)FIX2ULONG(val); + return (LONG_LONG)FIX2LONG(val); /* this is FIX2LONG, inteneded */ case T_FLOAT: if (RFLOAT_VALUE(val) < ULLONG_MAX_PLUS_ONE -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/