1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

merge revision(s) 35485: [Backport #7013]

* 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/branches/ruby_1_9_3@37007 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2012-09-21 10:53:50 +00:00
parent a0a7608bb2
commit 01865d5bc6
3 changed files with 11 additions and 1 deletions

View file

@ -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

View file

@ -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);

View file

@ -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