diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-07-15 15:00:00 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-07-15 15:00:00 +0000 |
commit | 26b5fd1e7b083ae3e9b81eb2f78225d5fdf484d2 (patch) | |
tree | 56d9040eb86bf6cdeccd56be4d9b4c913a606fdc | |
parent | f298a1a670060f3b37d3e4ef588973d8758d6c0a (diff) |
* bignum.c (rb_big_neg): SIGNED_VALUE isn't in 1.8.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12801 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | bignum.c | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -1,3 +1,7 @@ +Sun Jul 15 23:59:57 2007 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * bignum.c (rb_big_neg): SIGNED_VALUE isn't in 1.8. + Sun Jul 15 22:24:49 2007 pegacorn <subscriber.jp AT gmail.com> * ext/digest/digest.c (rb_digest_instance_update, @@ -1100,7 +1100,7 @@ rb_big_neg(x) if (!RBIGNUM(x)->sign) get2comp(z); ds = BDIGITS(z); i = RBIGNUM(x)->len; - if (!i) return INT2FIX(~(SIGNED_VALUE)0); + if (!i) return INT2FIX(~0); while (i--) ds[i] = ~ds[i]; RBIGNUM(z)->sign = !RBIGNUM(z)->sign; if (RBIGNUM(x)->sign) get2comp(z); |