small cosmetic changes.

I prefer `i++` style unless absolutely necessary.
This commit is an addition to 41e4148.
This commit is contained in:
Yukihiro "Matz" Matsumoto
2022-11-18 23:08:12 +09:00
parent 7ab7608094
commit 9c5dc42e59
24 changed files with 99 additions and 99 deletions
+3 -3
View File
@@ -602,7 +602,7 @@ mrb_ary_shift(mrb_state *mrb, mrb_value self)
val = *ptr;
while (--size) {
*ptr = *(ptr+1);
++ptr;
ptr++;
}
ARY_SET_LEN(a, len-1);
}
@@ -646,7 +646,7 @@ mrb_ary_shift_m(mrb_state *mrb, mrb_value self)
while (size--) {
*ptr = *(ptr+n);
++ptr;
ptr++;
}
ARY_SET_LEN(a, len-n);
}
@@ -1074,7 +1074,7 @@ mrb_ary_delete_at(mrb_state *mrb, mrb_value self)
len = alen - index;
while (--len) {
*ptr = *(ptr+1);
++ptr;
ptr++;
}
ARY_SET_LEN(a, alen-1);