1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
usa 2008-07-03 20:04:35 +00:00
parent 17df532792
commit f8ed3b245a
2 changed files with 16 additions and 8 deletions

View file

@ -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>

View file

@ -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