diff options
Diffstat (limited to 'test/hash_test.c')
-rw-r--r-- | test/hash_test.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/hash_test.c b/test/hash_test.c index 91c0127..bfddc49 100644 --- a/test/hash_test.c +++ b/test/hash_test.c @@ -102,7 +102,9 @@ stress(void) 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]) { + } + + if (*(const void*const*)inserted != strings[i]) { return test_fail("Corrupt insertion %s != %s\n", strings[i], *(const char*const*)inserted); } |