* 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
This commit is contained in:
glass 2013-11-08 02:37:47 +00:00
parent ce89a1c081
commit 5c54eb4045
6 changed files with 18 additions and 12 deletions

4
ruby.c
View file

@ -590,11 +590,11 @@ process_sflag(int *sflag)
{
if (*sflag > 0) {
long n;
VALUE *args;
const VALUE *args;
VALUE argv = rb_argv;
n = RARRAY_LEN(argv);
args = RARRAY_PTR(argv);
args = RARRAY_CONST_PTR(argv);
while (n > 0) {
VALUE v = *args++;
char *s = StringValuePtr(v);