зеркало из https://github.com/github/ruby.git
* ext/dl/cfunc.c (rb_dlcfunc_call): should convert a Bignum value to
unsigned long long on Win64. [ruby-core:44636][Bug #6364] reported by raylinn@gmail.com (ray linn) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35485 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
0a68f1200b
Коммит
62d71852df
|
@ -1,3 +1,9 @@
|
|||
Fri Apr 27 12:34:23 2012 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* ext/dl/cfunc.c (rb_dlcfunc_call): should convert a Bignum value to
|
||||
unsigned long long on Win64.
|
||||
[ruby-core:44636][Bug #6364] reported by raylinn@gmail.com (ray linn)
|
||||
|
||||
Fri Apr 27 10:58:17 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* test/readline/test_readline.rb (setup): avoid affected by user's
|
||||
|
|
|
@ -367,7 +367,11 @@ rb_dlcfunc_call(VALUE self, VALUE ary)
|
|||
stack[i] = (DLSTACK_TYPE)FIX2LONG(arg);
|
||||
}
|
||||
else if (RB_TYPE_P(arg, T_BIGNUM)) {
|
||||
#if SIZEOF_VOIDP == SIZEOF_LONG
|
||||
stack[i] = (DLSTACK_TYPE)rb_big2ulong_pack(arg);
|
||||
#else
|
||||
stack[i] = (DLSTACK_TYPE)rb_big2ull(arg);
|
||||
#endif
|
||||
}
|
||||
else {
|
||||
Check_Type(arg, T_FIXNUM);
|
||||
|
|
Загрузка…
Ссылка в новой задаче