diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-07-11 06:03:41 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-07-11 06:03:41 +0000 |
commit | 12adf25a80227737ee09c50ae156cf2dd451b19a (patch) | |
tree | 3beccc09c5db83f2e545c41d51e36722519c5dcc | |
parent | e4c452daf8030575f83c3bae49cb0fe9a76c7e89 (diff) | |
download | ruby-12adf25a80227737ee09c50ae156cf2dd451b19a.tar.gz |
* 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
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | numeric.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -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 @@ -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 |