diff options
Diffstat (limited to 'zutil.h')
-rw-r--r-- | zutil.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -56,7 +56,7 @@ typedef unsigned long ulg; | |||
56 | extern z_const char * const z_errmsg[10]; /* indexed by 2-zlib_error */ | 56 | extern 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)) |