ruby-changes:33290
From: ko1 <ko1@a...>
Date: Thu, 20 Mar 2014 13:06:34 +0900 (JST)
Subject: [ruby-changes:33290] ko1:r45369 (trunk): * struct.c (rb_struct_alloc): use RARRAY_CONST_PTR() instead of
ko1 2014-03-20 13:06:27 +0900 (Thu, 20 Mar 2014) New Revision: 45369 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=45369 Log: * struct.c (rb_struct_alloc): use RARRAY_CONST_PTR() instead of RARRAY_PTR(). Modified files: trunk/ChangeLog trunk/struct.c Index: ChangeLog =================================================================== --- ChangeLog (revision 45368) +++ ChangeLog (revision 45369) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Thu Mar 20 13:05:16 2014 Koichi Sasada <ko1@a...> + + * struct.c (rb_struct_alloc): use RARRAY_CONST_PTR() instead of + RARRAY_PTR(). + Thu Mar 20 12:59:39 2014 Koichi Sasada <ko1@a...> * include/ruby/intern.h (rb_obj_call_init, rb_class_new_instance): Index: struct.c =================================================================== --- struct.c (revision 45368) +++ struct.c (revision 45369) @@ -480,7 +480,7 @@ struct_alloc(VALUE klass) https://github.com/ruby/ruby/blob/trunk/struct.c#L480 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/