summaryrefslogtreecommitdiff
path: root/numeric.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1999-05-18 00:34:41 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1999-05-18 00:34:41 +0000
commitc59869494a1a299cad47676e626cfc918c92364e (patch)
tree3f5a9f77ae12e51ecc8147ddcb141447ea7820a2 /numeric.c
parentc8bd43a967355ddb5acb2fad757db3faaf7465fb (diff)
arity bug
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_3@470 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'numeric.c')
-rw-r--r--numeric.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/numeric.c b/numeric.c
index 102665f8dff..91d5c97edba 100644
--- a/numeric.c
+++ b/numeric.c
@@ -1100,7 +1100,7 @@ static VALUE
fix_rev(num)
VALUE num;
{
- unsigned long val = FIX2ULONG(num);
+ long val = FIX2LONG(num);
val = ~val;
return rb_int2inum(val);