mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* numeric.c (rb_num2fix): result of rb_num2long is SIGNED_VALUE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29465 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b736c9b5dc
commit
2f0b8e2793
2 changed files with 4 additions and 2 deletions
|
@ -1,4 +1,6 @@
|
|||
Tue Oct 12 23:47:18 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
Tue Oct 12 23:53:57 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* numeric.c (rb_num2fix): result of rb_num2long is SIGNED_VALUE.
|
||||
|
||||
* compile.c (iseq_build_body), error.c (set_syserr, get_syserr),
|
||||
(syserr_initialize), gc.c (define_final, rb_gc_copy_finalizer),
|
||||
|
|
|
@ -1858,7 +1858,7 @@ rb_fix2int(VALUE val)
|
|||
VALUE
|
||||
rb_num2fix(VALUE val)
|
||||
{
|
||||
long v;
|
||||
SIGNED_VALUE v;
|
||||
|
||||
if (FIXNUM_P(val)) return val;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue