summaryrefslogtreecommitdiff
path: root/numeric.c
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-07-03 20:04:35 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-07-03 20:04:35 +0000
commitf8ed3b245ac977526295cf0d7eab55ec7059e016 (patch)
treed5b762a957aa242807e3fd3114fa52aa15d3f53b /numeric.c
parent17df532792cc2902496c27d32a4cb357a09bb91e (diff)
* numeric.c (rb_num2uint, rb_fix2uint): typo.
* ChangeLog: format. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17865 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'numeric.c')
-rw-r--r--numeric.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/numeric.c b/numeric.c
index 96c492e..07b5ae6 100644
--- a/numeric.c
+++ b/numeric.c
@@ -1615,7 +1615,7 @@ rb_num2uint(VALUE val)
{
unsigned long num = rb_num2ulong(val);
- check_uint(num, RTEST(rb_funcall(val, '<', INT2FIX(0))));
+ check_uint(num, RTEST(rb_funcall(val, '<', 1, INT2FIX(0))));
return num;
}
@@ -1628,7 +1628,7 @@ rb_fix2uint(VALUE val)
return rb_num2uint(val);
}
num = FIX2ULONG(val);
- check_uint(num, RTEST(rb_funcall(val, '<', INT2FIX(0))));
+ check_uint(num, RTEST(rb_funcall(val, '<', 1, INT2FIX(0))));
return num;
}
#else