summaryrefslogtreecommitdiff
path: root/uncompr.c
diff options
context:
space:
mode:
authorMika Lindqvist <postmaster@raasu.org>2020-08-23 10:58:57 +0300
committerGitHub <noreply@github.com>2020-08-23 09:58:57 +0200
commit28e5e73f3427f3b80a3926f2564ae3ecb9309c72 (patch)
treeacfa1d9ce46de78c86b07a6a46a0d0487a4ef245 /uncompr.c
parentcbc3962b937315ccfb0108a6a96ee005328f467c (diff)
Reintroduce support for ZLIB_CONST in compat mode. (#704)
* Reintroduce support for ZLIB_CONST in compat mode.
Diffstat (limited to 'uncompr.c')
-rw-r--r--uncompr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/uncompr.c b/uncompr.c
index 76844aa..1934ba3 100644
--- a/uncompr.c
+++ b/uncompr.c
@@ -43,7 +43,7 @@ int ZEXPORT PREFIX(uncompress2)(unsigned char *dest, z_size_t *destLen, const un
dest = buf;
}
- stream.next_in = (const unsigned char *)source;
+ stream.next_in = (z_const unsigned char *)source;
stream.avail_in = 0;
stream.zalloc = NULL;
stream.zfree = NULL;