diff options
| author | Nathan Moinvaziri <nathan@nathanm.com> | 2025-12-02 22:51:05 -0800 |
|---|---|---|
| committer | Hans Kristian Rosbach <hk-github@circlestorm.org> | 2025-12-03 12:15:50 +0100 |
| commit | e2cd66c048de41a05a13cf5e6b32a2b72577c82b (patch) | |
| tree | 9ae316ad1194e4183d4ad268a0dd11b1800d770a | |
| parent | f5e20300e30ac57e9590d95a24ef7b6331db8ceb (diff) | |
| download | Project-Tick-e2cd66c048de41a05a13cf5e6b32a2b72577c82b.tar.gz Project-Tick-e2cd66c048de41a05a13cf5e6b32a2b72577c82b.zip | |
Wrap _cond in Assert macro in case complex statement used.
| -rw-r--r-- | zbuild.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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;} |
