summaryrefslogtreecommitdiff
path: root/ext/fiddle/conversions.c
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-02-09 07:03:07 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-02-09 07:03:07 +0000
commitda098bd36e31dea28cbc58ed25bcb621e8b0a778 (patch)
tree4d3f1a299e81dd87ebb8df9ffe510b1510a171ae /ext/fiddle/conversions.c
parent57b21752078e3a2e8c4afc53cbbb6ab0c049769d (diff)
* 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
Diffstat (limited to 'ext/fiddle/conversions.c')
-rw-r--r--ext/fiddle/conversions.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/fiddle/conversions.c b/ext/fiddle/conversions.c
index 8ffd7c5..14b444f 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: