From 5cf1e0e20754abca853a285b7c6a48f3f86e67c7 Mon Sep 17 00:00:00 2001 From: seleznevae Date: Fri, 9 Mar 2018 12:46:40 +0300 Subject: [PATCH] [F] Fixed building --- tests/test_vector.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/test_vector.c b/tests/test_vector.c index cd2d611..55c7be2 100644 --- a/tests/test_vector.c +++ b/tests/test_vector.c @@ -7,6 +7,7 @@ void test_vector_basic(void **state) { (void)state; + size_t i = 0; typedef short item_t; const size_t init_capacity = 10; @@ -17,7 +18,7 @@ void test_vector_basic(void **state) assert_true( vector_capacity(vector) == init_capacity ); WHEN("Pushing less items than initial capacity") { - for (size_t i = 0; i < init_capacity; ++i) { + for (i = 0; i < init_capacity; ++i) { item_t item = i; vector_push(vector, &item); } @@ -37,7 +38,7 @@ void test_vector_basic(void **state) } WHEN("Pushing more items than initial capacity") { - for (size_t i = 0; i < 2 * init_capacity; ++i) { + for (i = 0; i < 2 * init_capacity; ++i) { item_t item = 2 * i; vector_push(vector, &item); }