зеркало из https://github.com/github/ruby.git
* include/ruby/ruby.h (NUM2LONG_internal): add cast to get rid of a
non GCC compiler warning. this is intentional type conversion. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29605 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
bb2dc7e986
Коммит
6ef1aa7964
|
@ -1,3 +1,8 @@
|
|||
Wed Oct 27 11:58:58 2010 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* include/ruby/ruby.h (NUM2LONG_internal): add cast to get rid of a
|
||||
non GCC compiler warning. this is intentional type conversion.
|
||||
|
||||
Wed Oct 27 09:25:46 2010 NARUSE, Yui <naruse@ruby-lang.org>
|
||||
|
||||
* cont.c: apply documentation patch by Run Paint Run Run.
|
||||
|
|
|
@ -481,7 +481,7 @@ void rb_set_errinfo(VALUE);
|
|||
|
||||
SIGNED_VALUE rb_num2long(VALUE);
|
||||
VALUE rb_num2ulong(VALUE);
|
||||
#define NUM2LONG_internal(x) (FIXNUM_P(x) ? FIX2LONG(x) : rb_num2long(x))
|
||||
#define NUM2LONG_internal(x) ((long)(FIXNUM_P(x) ? FIX2LONG(x) : rb_num2long(x)))
|
||||
#ifdef __GNUC__
|
||||
#define NUM2LONG(x) \
|
||||
__extension__ ({VALUE num2long_x = (x); NUM2LONG_internal(num2long_x);})
|
||||
|
|
Загрузка…
Ссылка в новой задаче