summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog20
-rw-r--r--numeric.c4
2 files changed, 16 insertions, 8 deletions
diff --git a/ChangeLog b/ChangeLog
index 81ae65941d..e912a26cc6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,11 @@
+Fri Jul 4 05:01:26 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * numeric.c (rb_num2uint, rb_fix2uint): typo.
+
Fri Jul 4 02:21:06 2008 NAKAMURA Usaku <usa@ruby-lang.org>
- * numeric.c (check_uint, rb_num2uint): also needs checking negative
- value. see [ruby-dev:33683]
+ * numeric.c (check_uint, rb_num2uint, rb_fix2uint): also needs checking
+ negative value. see [ruby-dev:33683]
Thu Jul 3 23:26:36 2008 Yusuke Endoh <mame@tsg.ne.jp>
@@ -123,10 +127,14 @@ Thu Jul 3 00:09:31 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
* include/ruby/intern.h: ditto.
Wed Jul 2 09:49:10 2008 Narihiro Nakamura <authorNari@gmail.com>
-
- * gc.c (gc_lazy_sweep) : use lazy sweep algorithm for response performance gain.
- (garbage_collect_force) : mark and lazysweep invoke, after erasing all mark.
- (GC_NOT_LAZY_SWEEP) : not lazy sweep flag. for debug.
+
+ * gc.c (gc_lazy_sweep) : use lazy sweep algorithm for response
+ performance gain.
+
+ * gc.c (garbage_collect_force) : mark and lazysweep invoke, after
+ erasing all mark.
+
+ * gc.c (GC_NOT_LAZY_SWEEP) : not lazy sweep flag. for debug.
Wed Jul 2 03:42:44 2008 Yusuke Endoh <mame@tsg.ne.jp>
diff --git a/numeric.c b/numeric.c
index 96c492ee3c..07b5ae6e46 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