summaryrefslogtreecommitdiff
path: root/arr.c
diff options
context:
space:
mode:
Diffstat (limited to 'arr.c')
-rw-r--r--arr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arr.c b/arr.c
index 10ad4a8..d25dbf1 100644
--- a/arr.c
+++ b/arr.c
@@ -164,10 +164,10 @@ You shouldn't rely on this, though, e.g. by doing
#ifdef TOC_DEBUG
static void arr_test(void) {
int *foos = NULL;
- for (int i = 0; i < 1000; i++) {
+ for (int i = 0; i < 1000; ++i) {
*(int *)arr_add(&foos) = i;
}
- for (int i = 0; i < (int)arr_len(foos); i++) {
+ for (int i = 0; i < (int)arr_len(foos); ++i) {
assert(foos[i] == i);
}
int lastx = -1;