diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-03-20 04:06:27 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-03-20 04:06:27 +0000 |
commit | c813697d97832ffe4d660ab9bf0e5c3519448071 (patch) | |
tree | 79bc855a1816996f08e5068e03d7586793a45d01 /struct.c | |
parent | 53bd4502d830d5aafae5deb9278a3ec10c9fb093 (diff) | |
download | ruby-c813697d97832ffe4d660ab9bf0e5c3519448071.tar.gz |
* struct.c (rb_struct_alloc): use RARRAY_CONST_PTR() instead of
RARRAY_PTR().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45369 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'struct.c')
-rw-r--r-- | struct.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -480,7 +480,7 @@ struct_alloc(VALUE klass) VALUE rb_struct_alloc(VALUE klass, VALUE values) { - return rb_class_new_instance(RARRAY_LENINT(values), RARRAY_PTR(values), klass); + return rb_class_new_instance(RARRAY_LENINT(values), RARRAY_CONST_PTR(values), klass); } VALUE |