diff options
Diffstat (limited to 'ext')
-rw-r--r-- | ext/dl/cfunc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/dl/cfunc.c b/ext/dl/cfunc.c index 70cf6c49fc..de05eb37d7 100644 --- a/ext/dl/cfunc.c +++ b/ext/dl/cfunc.c @@ -367,7 +367,11 @@ rb_dlcfunc_call(VALUE self, VALUE ary) stack[i] = (DLSTACK_TYPE)FIX2LONG(arg); } else if (RB_TYPE_P(arg, T_BIGNUM)) { +#if SIZEOF_VOIDP == SIZEOF_LONG stack[i] = (DLSTACK_TYPE)rb_big2ulong_pack(arg); +#else + stack[i] = (DLSTACK_TYPE)rb_big2ull(arg); +#endif } else { Check_Type(arg, T_FIXNUM); |