mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/fiddle/closure.c (callback): deal with unsinged integers.
[ruby-core:42458][Bug #5991][Bug #6022] * ext/fiddle/conversions.c (value_to_generic, generic_to_value): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34627 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
fa65df0d08
commit
34be46a32e
5 changed files with 80 additions and 31 deletions
|
@ -67,6 +67,15 @@
|
|||
# error "long size not supported"
|
||||
# endif
|
||||
|
||||
#if HAVE_LONG_LONG
|
||||
# if SIZEOF_LONG_LONG == 8
|
||||
# define ffi_type_slong_long ffi_type_sint64
|
||||
# define ffi_type_ulong_long ffi_type_uint64
|
||||
# else
|
||||
# error "long long size not supported"
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#include <closure.h>
|
||||
#include <conversions.h>
|
||||
#include <function.h>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue