Permalink
Browse files

Remove unnecessary inline declaration; ref #3409

  • Loading branch information...
matz committed Jan 23, 2017
1 parent 9d0f07e commit fdec607cd06bc12c844fd71bdb75db74f909ff74
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/array.c
View
@@ -631,7 +631,7 @@ mrb_ary_splice(mrb_state *mrb, mrb_value ary, mrb_int head, mrb_int len, mrb_val
}
ary_fill_with_nil(a->ptr + a->len, head - a->len);
if (argc > 0) {
for (int i = 0; i < argc; i++) {
for (i = 0; i < argc; i++) {

This comment has been minimized.

Show comment
Hide comment
@ksss

ksss Jan 23, 2017

Contributor

I think, array_copy(a->ptr + head, argv, argc) is better.

@ksss

ksss Jan 23, 2017

Contributor

I think, array_copy(a->ptr + head, argv, argc) is better.

This comment has been minimized.

Show comment
Hide comment
@matz

matz Jan 23, 2017

Member

Send PR, please.

@matz

matz Jan 23, 2017

Member

Send PR, please.

This comment has been minimized.

Show comment
Hide comment
@ksss

ksss Jan 23, 2017

Contributor

OK, I sent it #3412

@ksss

ksss Jan 23, 2017

Contributor

OK, I sent it #3412

a->ptr[head + i] = argv[i];
}
}

0 comments on commit fdec607

Please sign in to comment.