summaryrefslogtreecommitdiff
path: root/ext/fiddle
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-11-04 07:18:01 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-11-04 07:18:01 (GMT)
commit52912db4a81f9b9b69ab9e9fcd95e22d086d4289 (patch)
tree664a5b8fb85a73fa2083e49bf8c4982e93586969 /ext/fiddle
parentc8803b10d18fa4d28c7eba47c232004149779b26 (diff)
ext: adjust index type
* ext: use long for index instead of int and RARRAY_LENINT. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52447 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/fiddle')
-rw-r--r--ext/fiddle/function.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/fiddle/function.c b/ext/fiddle/function.c
index 50a2d24..4c19821 100644
--- a/ext/fiddle/function.c
+++ b/ext/fiddle/function.c
@@ -90,7 +90,7 @@ initialize(int argc, VALUE argv[], VALUE self)
ffi_type **arg_types;
ffi_status result;
VALUE ptr, args, ret_type, abi, kwds;
- int i;
+ long i;
rb_scan_args(argc, argv, "31:", &ptr, &args, &ret_type, &abi, &kwds);
if(NIL_P(abi)) abi = INT2NUM(FFI_DEFAULT_ABI);