aboutsummaryrefslogtreecommitdiff
path: root/zutil.h
diff options
context:
space:
mode:
Diffstat (limited to 'zutil.h')
-rw-r--r--zutil.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/zutil.h b/zutil.h
index 902a304..0bd2dbc 100644
--- a/zutil.h
+++ b/zutil.h
@@ -56,7 +56,7 @@ typedef unsigned long ulg;
56extern z_const char * const z_errmsg[10]; /* indexed by 2-zlib_error */ 56extern z_const char * const z_errmsg[10]; /* indexed by 2-zlib_error */
57/* (size given to avoid silly warnings with Visual C++) */ 57/* (size given to avoid silly warnings with Visual C++) */
58 58
59#define ERR_MSG(err) z_errmsg[Z_NEED_DICT-(err)] 59#define ERR_MSG(err) z_errmsg[(err) < -6 || (err) > 2 ? 9 : 2 - (err)]
60 60
61#define ERR_RETURN(strm,err) \ 61#define ERR_RETURN(strm,err) \
62 return (strm->msg = ERR_MSG(err), (err)) 62 return (strm->msg = ERR_MSG(err), (err))