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

* ext/fiddle/conversions.c (value_to_generic): src is not guranteed as

a Bignum if the type is LONG_LONG.  it may be a Fixnum if the value
  is small.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34506 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2012-02-09 07:03:07 +00:00
parent 57b2175207
commit da098bd36e
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,9 @@
Thu Feb 9 16:01:29 2012 NAKAMURA Usaku <usa@ruby-lang.org>
* ext/fiddle/conversions.c (value_to_generic): src is not guranteed as
a Bignum if the type is LONG_LONG. it may be a Fixnum if the value
is small.
Thu Feb 9 11:32:36 2012 NAKAMURA Usaku <usa@ruby-lang.org>
* ext/dl/lib/types.rb: Win64 support.

View file

@ -72,7 +72,7 @@ value_to_generic(int type, VALUE src, fiddle_generic * dst)
break;
#if HAVE_LONG_LONG
case TYPE_LONG_LONG:
dst->long_long = rb_big2ull(src);
dst->long_long = NUM2ULL(src);
break;
#endif
case TYPE_FLOAT: