mirror of
https://github.com/ruby/ruby.git
synced 2025-09-17 17:43:59 +02:00
* 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:
parent
ce89a1c081
commit
5c54eb4045
6 changed files with 18 additions and 12 deletions
4
ruby.c
4
ruby.c
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue