summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Moinvaziri <nathan@nathanm.com>2025-12-02 22:51:05 -0800
committerHans Kristian Rosbach <hk-github@circlestorm.org>2025-12-03 12:15:50 +0100
commite2cd66c048de41a05a13cf5e6b32a2b72577c82b (patch)
tree9ae316ad1194e4183d4ad268a0dd11b1800d770a
parentf5e20300e30ac57e9590d95a24ef7b6331db8ceb (diff)
downloadProject-Tick-e2cd66c048de41a05a13cf5e6b32a2b72577c82b.tar.gz
Project-Tick-e2cd66c048de41a05a13cf5e6b32a2b72577c82b.zip
Wrap _cond in Assert macro in case complex statement used.
-rw-r--r--zbuild.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/zbuild.h b/zbuild.h
index a62c3c6135..4975b11b97 100644
--- a/zbuild.h
+++ b/zbuild.h
@@ -249,7 +249,7 @@
#ifdef ZLIB_DEBUG
extern int Z_INTERNAL z_verbose;
extern void Z_INTERNAL z_error(const char *m);
-# define Assert(cond, msg) {int _cond = (cond); if (!_cond) z_error(msg);}
+# define Assert(cond, msg) {int _cond = (cond); if (!(_cond)) z_error(msg);}
# define Trace(x) {if (z_verbose >= 0) fprintf x;}
# define Tracev(x) {if (z_verbose > 0) fprintf x;}
# define Tracevv(x) {if (z_verbose > 1) fprintf x;}