1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* bignum.c (bigsub_int): remove nonsense loop.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26349 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
mame 2010-01-18 16:55:15 +00:00
parent 98fb593998
commit 7f418222b1
2 changed files with 4 additions and 2 deletions

View file

@ -1,3 +1,7 @@
Tue Jan 19 01:53:11 2010 Yusuke Endoh <mame@tsg.ne.jp>
* bignum.c (bigsub_int): remove nonsense loop.
Tue Jan 19 01:42:36 2010 Yusuke Endoh <mame@tsg.ne.jp>
* parse.y (top_compstmt, top_stmts, top_stmt): prohibit BEGIN {} in

View file

@ -1516,8 +1516,6 @@ bigsub_int(VALUE x, long y0)
#if SIZEOF_BDIGITS == SIZEOF_LONG
num = (BDIGIT_DBL_SIGNED)xds[0] - y;
if (xn == 1 && num < 0) {
for (i=0; i<xn; i++) {
}
RBIGNUM_SET_SIGN(z, !RBIGNUM_SIGN(x));
zds[0] = (BDIGIT)-num;
return bignorm(z);