summaryrefslogtreecommitdiff
path: root/bignum.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-07-15 15:00:00 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-07-15 15:00:00 +0000
commit26b5fd1e7b083ae3e9b81eb2f78225d5fdf484d2 (patch)
tree56d9040eb86bf6cdeccd56be4d9b4c913a606fdc /bignum.c
parentf298a1a670060f3b37d3e4ef588973d8758d6c0a (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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bignum.c b/bignum.c
index fb469e1a84..788db18dd1 100644
--- a/bignum.c
+++ b/bignum.c
@@ -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);