diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-02-09 07:03:07 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-02-09 07:03:07 +0000 |
commit | da098bd36e31dea28cbc58ed25bcb621e8b0a778 (patch) | |
tree | 4d3f1a299e81dd87ebb8df9ffe510b1510a171ae /ext/fiddle/conversions.c | |
parent | 57b21752078e3a2e8c4afc53cbbb6ab0c049769d (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
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: |