diff options
author | glass <glass@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-11-08 02:37:47 +0000 |
---|---|---|
committer | glass <glass@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-11-08 02:37:47 +0000 |
commit | 5c54eb4045eb9864a5b728f136229b4f00b2f2f3 (patch) | |
tree | fe21ce016e7ff83ee799600f56da2e05c001afe6 /struct.c | |
parent | ce89a1c0816df5d1e1e7d69a58f197a7b501b2e2 (diff) | |
download | ruby-5c54eb4045eb9864a5b728f136229b4f00b2f2f3.tar.gz |
* dir.c, pack.c, ruby.c, struct.c, vm_eval.c: use RARRAY_CONST_PTR().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43580 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'struct.c')
-rw-r--r-- | struct.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -435,7 +435,7 @@ num_members(VALUE klass) */ static VALUE -rb_struct_initialize_m(int argc, VALUE *argv, VALUE self) +rb_struct_initialize_m(int argc, const VALUE *argv, VALUE self) { VALUE klass = rb_obj_class(self); long i, n; @@ -457,7 +457,7 @@ rb_struct_initialize_m(int argc, VALUE *argv, VALUE self) VALUE rb_struct_initialize(VALUE self, VALUE values) { - return rb_struct_initialize_m(RARRAY_LENINT(values), RARRAY_PTR(values), self); + return rb_struct_initialize_m(RARRAY_LENINT(values), RARRAY_CONST_PTR(values), self); } static VALUE |