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 /bignum.c | |
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
Diffstat (limited to 'bignum.c')
-rw-r--r-- | bignum.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |