mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/dl/function.c: using ULONG2NUM to fix tests on i686.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26675 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
76678bb526
commit
e5657a6584
1 changed files with 1 additions and 1 deletions
|
@ -157,7 +157,7 @@ unwrap_ffi(VALUE rettype, dl_generic retval)
|
|||
return INT2NUM(retval.sint);
|
||||
case DLTYPE_LONG:
|
||||
if (signed_p) return LONG2NUM(retval.slong);
|
||||
return LONG2NUM(retval.ulong);
|
||||
return ULONG2NUM(retval.ulong);
|
||||
#if HAVE_LONG_LONG
|
||||
case DLTYPE_LONG_LONG:
|
||||
return rb_ll2inum(retval.long_long);
|
||||
|
|
Loading…
Add table
Reference in a new issue