浏览代码

explicit test

Francois Perrad 10 年之前
父节点
当前提交
9654a40ad0
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tests/test58.c

+ 1 - 1
tests/test58.c

@@ -31,7 +31,7 @@ int main(int argc,char *argv[]) {
     printf("%u users. Deleting odd id's...\n", c);
     /* delete the odd id's */
     HASH_ITER(hh, users, user, tmp) {
-        if (user->id & 1) HASH_DEL(users,user);
+        if ((user->id & 1) != 0) HASH_DEL(users,user);
     }
 
     /* show the hash */