diff options
Diffstat (limited to 'benchtests')
-rw-r--r-- | benchtests/bench-memcpy-walk.c | 3 | ||||
-rw-r--r-- | benchtests/bench-memmove-walk.c | 5 |
2 files changed, 3 insertions, 5 deletions
diff --git a/benchtests/bench-memcpy-walk.c b/benchtests/bench-memcpy-walk.c index caf71e5..2771f56 100644 --- a/benchtests/bench-memcpy-walk.c +++ b/benchtests/bench-memcpy-walk.c @@ -83,7 +83,6 @@ int test_main (void) { json_ctx_t json_ctx; - size_t i; test_init (); @@ -102,7 +101,7 @@ test_main (void) json_array_end (&json_ctx); json_array_begin (&json_ctx, "results"); - for (i = START_SIZE; i <= MIN_PAGE_SIZE; i <<= 1) + for (size_t i = START_SIZE; i <= MIN_PAGE_SIZE; i <<= 1) { /* Test length alignments from 0-16 bytes. */ for (int j = 0; j < 8; j++) diff --git a/benchtests/bench-memmove-walk.c b/benchtests/bench-memmove-walk.c index eee5d0b..80a7d62 100644 --- a/benchtests/bench-memmove-walk.c +++ b/benchtests/bench-memmove-walk.c @@ -86,7 +86,6 @@ int test_main (void) { json_ctx_t json_ctx; - size_t i; test_init (); @@ -106,7 +105,7 @@ test_main (void) json_array_begin (&json_ctx, "results"); /* Non-overlapping buffers. */ - for (i = START_SIZE; i <= MIN_PAGE_SIZE; i <<= 1) + for (size_t i = START_SIZE; i <= MIN_PAGE_SIZE; i <<= 1) { /* Test length alignments from 0-16 bytes. */ for (int j = 0; j < 8; j++) @@ -117,7 +116,7 @@ test_main (void) } /* Overlapping buffers. */ - for (i = START_SIZE; i <= MIN_PAGE_SIZE; i <<= 1) + for (size_t i = START_SIZE; i <= MIN_PAGE_SIZE; i <<= 1) { /* Test length alignments from 0-16 bytes. */ for (int j = 0; j < 8; j++) |