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

* numeric.c (rb_num2ull): use FIX2LONG instead of FIX2ULONG. see

rb_num2ulong().


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32512 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2011-07-11 06:03:41 +00:00
parent e4c452daf8
commit 12adf25a80
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Mon Jul 11 15:02:24 2011 NAKAMURA Usaku <usa@ruby-lang.org>
* numeric.c (rb_num2ull): use FIX2LONG instead of FIX2ULONG. see
rb_num2ulong().
Mon Jul 11 05:38:05 2011 Yutaka Kanemoto <kanemoto@ruby-lang.org>
* thread_pthread.c (get_stack): need to adjust stack addr for

View file

@ -1981,7 +1981,7 @@ rb_num2ull(VALUE val)
rb_raise(rb_eTypeError, "no implicit conversion from nil");
case T_FIXNUM:
return (LONG_LONG)FIX2ULONG(val);
return (LONG_LONG)FIX2LONG(val); /* this is FIX2LONG, inteneded */
case T_FLOAT:
if (RFLOAT_VALUE(val) < ULLONG_MAX_PLUS_ONE