mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
function.c: fix typo
* ext/fiddle/function.c (initialize): fix typo "ary" to "args", and adjust type of variables to suppress warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53090 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0d5d742b32
commit
4977af3c3d
1 changed files with 3 additions and 3 deletions
|
@ -94,7 +94,7 @@ initialize(int argc, VALUE argv[], VALUE self)
|
||||||
ffi_type **arg_types, *rtype;
|
ffi_type **arg_types, *rtype;
|
||||||
ffi_status result;
|
ffi_status result;
|
||||||
VALUE ptr, args, ret_type, abi, kwds, ary;
|
VALUE ptr, args, ret_type, abi, kwds, ary;
|
||||||
long i, len;
|
int i, len;
|
||||||
int nabi;
|
int nabi;
|
||||||
void *cfunc;
|
void *cfunc;
|
||||||
|
|
||||||
|
@ -110,8 +110,8 @@ initialize(int argc, VALUE argv[], VALUE self)
|
||||||
|
|
||||||
Check_Type(args, T_ARRAY);
|
Check_Type(args, T_ARRAY);
|
||||||
len = RARRAY_LENINT(args);
|
len = RARRAY_LENINT(args);
|
||||||
Check_Max_Args_Long("args", len);
|
Check_Max_Args("args", len);
|
||||||
ary = rb_ary_subseq(ary, 0, len);
|
ary = rb_ary_subseq(args, 0, len);
|
||||||
for (i = 0; i < RARRAY_LEN(args); i++) {
|
for (i = 0; i < RARRAY_LEN(args); i++) {
|
||||||
VALUE a = RARRAY_PTR(args)[i];
|
VALUE a = RARRAY_PTR(args)[i];
|
||||||
int type = NUM2INT(a);
|
int type = NUM2INT(a);
|
||||||
|
|
Loading…
Reference in a new issue