From 771599745cfe2a306dc45f2f299b9bfbfa19601b Mon Sep 17 00:00:00 2001 From: John Darrington Date: Sun, 2 Aug 2020 11:44:18 +0200 Subject: [PATCH] Avoid warnings about ! being passed a non-boolean --- src/data/case.h | 2 +- src/data/caseproto.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/data/case.h b/src/data/case.h index 1f5e192f3d..4b20d477d6 100644 --- a/src/data/case.h +++ b/src/data/case.h @@ -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); } diff --git a/src/data/caseproto.h b/src/data/caseproto.h index 207ecacedb..1556efb5df 100644 --- a/src/data/caseproto.h +++ b/src/data/caseproto.h @@ -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); } -- 2.30.2