summaryrefslogtreecommitdiff
path: root/src/test/test-hashmap.c
diff options
context:
space:
mode:
authorDaniel Mack <daniel@zonque.org>2015-02-24 16:24:14 +0100
committerDaniel Mack <daniel@zonque.org>2015-02-24 16:26:30 +0100
commit4b3eff61640672bf0b19cb8cdd88ce5e84dcda1c (patch)
tree65f3cd35c9ed05c5c39baeddc1061b284e4f98cc /src/test/test-hashmap.c
parentf9bf3e260c480f7b660bec3f78a13f52a46ec34d (diff)
test-hashmap: fix gcc5 warning
gcc5 spits out a warning about test-hashmap.c: CC src/test/test-hashmap.o src/test/test-hashmap.c: In function ‘test_string_compare_func’: src/test/test-hashmap.c:76:79: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses]
Diffstat (limited to 'src/test/test-hashmap.c')
-rw-r--r--src/test/test-hashmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test-hashmap.c b/src/test/test-hashmap.c
index 40be084ffb..767cbd90e9 100644
--- a/src/test/test-hashmap.c
+++ b/src/test/test-hashmap.c
@@ -73,7 +73,7 @@ static void test_trivial_compare_func(void) {
}
static void test_string_compare_func(void) {
- assert_se(!string_compare_func("fred", "wilma") == 0);
+ assert_se(string_compare_func("fred", "wilma") != 0);
assert_se(string_compare_func("fred", "fred") == 0);
}