diff options
author | David Robillard <d@drobilla.net> | 2012-02-01 01:46:46 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-02-01 01:46:46 +0000 |
commit | cd137d2f8bbb2e1e97e2045700f2be5b822c2bd6 (patch) | |
tree | 63a8adad65333339dc8160d879c0c75f6b1b56ff | |
parent | 5d071ef1c9ea2d39c03ca64b6a0c3bb9c67bd8cf (diff) | |
download | zix-cd137d2f8bbb2e1e97e2045700f2be5b822c2bd6.tar.gz zix-cd137d2f8bbb2e1e97e2045700f2be5b822c2bd6.tar.bz2 zix-cd137d2f8bbb2e1e97e2045700f2be5b822c2bd6.zip |
Fix types.
git-svn-id: http://svn.drobilla.net/zix/trunk@59 df6676b4-ccc9-40e5-b5d6-7c4628a128e3
-rw-r--r-- | test/ring_test.c | 6 |
1 files changed, 3 insertions, 3 deletions
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); |