Avoid warnings about ! being passed a non-boolean
authorJohn Darrington <john@darrington.wattle.id.au>
Sun, 2 Aug 2020 09:44:18 +0000 (11:44 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Sun, 16 Aug 2020 07:01:26 +0000 (09:01 +0200)
src/data/case.h
src/data/caseproto.h

index 1f5e192f3d748ec0050f3d00c5f6006b156434e7..4b20d477d6a2b66b1e6cf98a99ed820dc547e3f4 100644 (file)
@@ -138,7 +138,7 @@ case_unshare (struct ccase *c)
 static inline void
 case_unref (struct ccase *c)
 {
-  if (c != NULL && !--c->ref_cnt)
+  if (c != NULL && --c->ref_cnt == 0)
     case_unref__ (c);
 }
 
index 207ecacedb85fb604d44974c64c2187fc8338db5..1556efb5df1a947dacd1bc588c928f6fd70fbee5 100644 (file)
@@ -156,7 +156,7 @@ caseproto_ref (const struct caseproto *proto_)
 static inline void
 caseproto_unref (struct caseproto *proto)
 {
-  if (proto != NULL && !--proto->ref_cnt)
+  if (proto != NULL && --proto->ref_cnt == 0)
     caseproto_free__ (proto);
 }
 \f