ruby-changes:22457
From: usa <ko1@a...>
Date: Thu, 9 Feb 2012 16:03:19 +0900 (JST)
Subject: [ruby-changes:22457] usa:r34506 (trunk): * ext/fiddle/conversions.c (value_to_generic): src is not guranteed as
usa 2012-02-09 16:03:07 +0900 (Thu, 09 Feb 2012) New Revision: 34506 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=34506 Log: * 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. Modified files: trunk/ChangeLog trunk/ext/fiddle/conversions.c Index: ChangeLog =================================================================== --- ChangeLog (revision 34505) +++ ChangeLog (revision 34506) @@ -1,3 +1,9 @@ +Thu Feb 9 16:01:29 2012 NAKAMURA Usaku <usa@r...> + + * 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@r...> * ext/dl/lib/types.rb: Win64 support. Index: ext/fiddle/conversions.c =================================================================== --- ext/fiddle/conversions.c (revision 34505) +++ ext/fiddle/conversions.c (revision 34506) @@ -72,7 +72,7 @@ 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: -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/