mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
fix va_start arg.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14004 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0d89567252
commit
e265a55740
1 changed files with 1 additions and 1 deletions
2
struct.c
2
struct.c
|
@ -233,7 +233,7 @@ rb_struct_define_without_accessor(char *class_name, VALUE super, rb_alloc_func_t
|
|||
char *name;
|
||||
|
||||
members = rb_ary_new2(0);
|
||||
va_start(ar, super);
|
||||
va_start(ar, alloc);
|
||||
i = 0;
|
||||
while ((name = va_arg(ar, char*)) != NULL) {
|
||||
rb_ary_push(members, ID2SYM(rb_intern(name)));
|
||||
|
|
Loading…
Reference in a new issue