summaryrefslogtreecommitdiffstats
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
commit2c842d749c8092a2b1253a2a8af3790f0c2a19c8 (patch)
treed5b762a957aa242807e3fd3114fa52aa15d3f53b /numeric.c
parent373b2ccfb970fe9ac853eaeda8ad88a0578d96bc (diff)
downloadruby-2c842d749c8092a2b1253a2a8af3790f0c2a19c8.tar.gz
ruby-2c842d749c8092a2b1253a2a8af3790f0c2a19c8.tar.xz
ruby-2c842d749c8092a2b1253a2a8af3790f0c2a19c8.zip
* numeric.c (rb_num2uint, rb_fix2uint): typo.
* ChangeLog: format. git-svn-id: http://svn.ruby-lang.org/repos/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 96c492ee3..07b5ae6e4 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