From e2cd66c048de41a05a13cf5e6b32a2b72577c82b Mon Sep 17 00:00:00 2001 From: Nathan Moinvaziri Date: Tue, 2 Dec 2025 22:51:05 -0800 Subject: Wrap _cond in Assert macro in case complex statement used. --- zbuild.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;} -- cgit 0.0.5-2-1-g0f52