From cd137d2f8bbb2e1e97e2045700f2be5b822c2bd6 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 1 Feb 2012 01:46:46 +0000 Subject: Fix types. git-svn-id: http://svn.drobilla.net/zix/trunk@59 df6676b4-ccc9-40e5-b5d6-7c4628a128e3 --- test/ring_test.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/ring_test.c b/test/ring_test.c index 6cbe4fd..f8a0ddd 100644 --- a/test/ring_test.c +++ b/test/ring_test.c @@ -26,7 +26,7 @@ #define MSG_SIZE 20 ZixRing* ring = 0; -size_t n_writes = 0; +unsigned n_writes = 0; bool read_error = false; static int @@ -72,7 +72,7 @@ reader(void* arg) int read_msg[MSG_SIZE]; // Read from ring unsigned count = 0; int start = gen_msg(ref_msg, 0); - for (size_t i = 0; i < n_writes; ++i) { + for (unsigned i = 0; i < n_writes; ++i) { if (zix_ring_read_space(ring) >= MSG_SIZE * sizeof(int)) { if (zix_ring_read(ring, read_msg, MSG_SIZE * sizeof(int))) { if (!cmp_msg(ref_msg, read_msg)) { @@ -97,7 +97,7 @@ writer(void* arg) int write_msg[MSG_SIZE]; // Written to ring int start = gen_msg(write_msg, 0); - for (size_t i = 0; i < n_writes; ++i) { + for (unsigned i = 0; i < n_writes; ++i) { if (zix_ring_write_space(ring) >= MSG_SIZE * sizeof(int)) { if (zix_ring_write(ring, write_msg, MSG_SIZE * sizeof(int))) { start = gen_msg(write_msg, start); -- cgit v1.2.1