ruby-changes:29641
From: akr <ko1@a...>
Date: Sat, 29 Jun 2013 09:36:07 +0900 (JST)
Subject: [ruby-changes:29641] akr:r41693 (trunk): * bignum.c (bigor_int): Return -1 if y == -1.
akr 2013-06-29 09:35:57 +0900 (Sat, 29 Jun 2013) New Revision: 41693 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=41693 Log: * bignum.c (bigor_int): Return -1 if y == -1. Modified files: trunk/ChangeLog trunk/bignum.c Index: ChangeLog =================================================================== --- ChangeLog (revision 41692) +++ ChangeLog (revision 41693) @@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Sat Jun 29 09:33:53 2013 Tanaka Akira <akr@f...> + + * bignum.c (bigor_int): Return -1 if y == -1. + Sat Jun 29 09:07:16 2013 Tanaka Akira <akr@f...> * bignum.c (bigor_int): Use RB_GC_GUARD. Index: bignum.c =================================================================== --- bignum.c (revision 41692) +++ bignum.c (revision 41693) @@ -4774,7 +4774,7 @@ bigor_int(VALUE x, long xn, BDIGIT hibit https://github.com/ruby/ruby/blob/trunk/bignum.c#L4774 long i; BDIGIT hibitsy; - if (y == -1) INT2FIX(-1); + if (y == -1) return INT2FIX(-1); if (xn == 0) return hibitsx ? INT2FIX(-1) : LONG2FIX(y); hibitsy = 0 <= y ? 0 : BDIGMAX; xds = BDIGITS(x); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/