diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | ext/dl/cfunc.c | 4 | ||||
-rw-r--r-- | version.h | 2 |
3 files changed, 11 insertions, 1 deletions
@@ -1,3 +1,9 @@ +Fri Sep 21 19:53:38 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 Sep 21 18:45:20 2012 Luis Lavena <luislavena@gmail.com> * include/ruby/win32.h: undef stat to silence mingw-w64 stat diff --git a/ext/dl/cfunc.c b/ext/dl/cfunc.c index 61a3aaebca..8edf102210 100644 --- a/ext/dl/cfunc.c +++ b/ext/dl/cfunc.c @@ -366,7 +366,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); @@ -1,5 +1,5 @@ #define RUBY_VERSION "1.9.3" -#define RUBY_PATCHLEVEL 272 +#define RUBY_PATCHLEVEL 273 #define RUBY_RELEASE_DATE "2012-09-21" #define RUBY_RELEASE_YEAR 2012 |