aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--ext/fiddle/conversions.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 528a228094..4153c34488 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
diff --git a/ext/fiddle/conversions.c b/ext/fiddle/conversions.c
index 8ffd7c5e08..14b444fb65 100644
--- a/ext/fiddle/conversions.c
+++ b/ext/fiddle/conversions.c
@@ -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: