diff options
author | David Robillard <d@drobilla.net> | 2019-01-07 20:00:56 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-01-07 20:00:56 +0100 |
commit | 8489a1a91e254f8bc987c2a5b65791dee1120c5c (patch) | |
tree | dd667ffbf9edf4c8f7034ca7e4f9d878ef8b1c43 /test | |
parent | a3034c7d34b86a122635e5fe93bbd3e07856fc22 (diff) | |
download | zix-8489a1a91e254f8bc987c2a5b65791dee1120c5c.tar.gz zix-8489a1a91e254f8bc987c2a5b65791dee1120c5c.tar.bz2 zix-8489a1a91e254f8bc987c2a5b65791dee1120c5c.zip |
Make zix_hash_insert() provide a non-const pointer
Diffstat (limited to 'test')
-rw-r--r-- | test/hash_test.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/hash_test.c b/test/hash_test.c index a24ae9c..b036fc5 100644 --- a/test/hash_test.c +++ b/test/hash_test.c @@ -100,8 +100,8 @@ stress(void) // Insert each string for (size_t i = 0; i < n_strings; ++i) { - const void* inserted = NULL; - ZixStatus st = zix_hash_insert(hash, &strings[i], &inserted); + void* inserted = NULL; + ZixStatus st = zix_hash_insert(hash, &strings[i], &inserted); if (st) { return test_fail("Failed to insert `%s'\n", strings[i]); } else if (*(const void*const*)inserted != strings[i]) { @@ -120,8 +120,8 @@ stress(void) // Attempt to insert each string again for (size_t i = 0; i < n_strings; ++i) { - const void* inserted = NULL; - ZixStatus st = zix_hash_insert(hash, &strings[i], &inserted); + void* inserted = NULL; + ZixStatus st = zix_hash_insert(hash, &strings[i], &inserted); if (st != ZIX_STATUS_EXISTS) { return test_fail("Double inserted `%s'\n", strings[i]); } |