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]
This commit is contained in:
parent
f9bf3e260c
commit
4b3eff6164
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue