summaryrefslogtreecommitdiff
path: root/blockarr.c
diff options
context:
space:
mode:
Diffstat (limited to 'blockarr.c')
-rw-r--r--blockarr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/blockarr.c b/blockarr.c
index 6280fde..5a689fe 100644
--- a/blockarr.c
+++ b/blockarr.c
@@ -57,12 +57,12 @@ static void block_arr_test(void) {
BlockArr a;
int *ps[100];
block_arr_create(&a, 3, sizeof(int));
- for (int i = 0; i < 100; i++) {
+ for (int i = 0; i < 100; ++i) {
int *p = block_arr_add(&a);
*p = i;
ps[i] = p;
}
- for (int i = 0; i < 100; i++) {
+ for (int i = 0; i < 100; ++i) {
assert(*ps[i] == i);
}
block_arr_free(&a);