summaryrefslogtreecommitdiff
path: root/gzlib.c
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2016-12-03 10:27:14 -0800
committerMark Adler <madler@alumni.caltech.edu>2016-12-04 07:48:48 -0800
commitca50ebd4dfd08dfd7e8c8bb087278e158cd67720 (patch)
tree9262ad9bb1dde6992b41093614d75d63eea2bf31 /gzlib.c
parentc5ee34c28a9144b1b5a5021d05ed29940c53010c (diff)
downloadzlib-ca50ebd4dfd08dfd7e8c8bb087278e158cd67720.tar.gz
zlib-ca50ebd4dfd08dfd7e8c8bb087278e158cd67720.tar.bz2
zlib-ca50ebd4dfd08dfd7e8c8bb087278e158cd67720.zip
Create z_size_t and z_ssize_t types.
Normally these are set to size_t and ssize_t. But if they do not exist, then they are set to the smallest integer type that can contain a pointer. size_t is unsigned and ssize_t is signed.
Diffstat (limited to 'gzlib.c')
-rw-r--r--gzlib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gzlib.c b/gzlib.c
index a52c55b..3b2b71b 100644
--- a/gzlib.c
+++ b/gzlib.c
@@ -94,7 +94,7 @@ local gzFile gz_open(path, fd, mode)
94 const char *mode; 94 const char *mode;
95{ 95{
96 gz_statep state; 96 gz_statep state;
97 size_t len; 97 z_size_t len;
98 int oflag; 98 int oflag;
99#ifdef O_CLOEXEC 99#ifdef O_CLOEXEC
100 int cloexec = 0; 100 int cloexec = 0;
@@ -191,7 +191,7 @@ local gzFile gz_open(path, fd, mode)
191#ifdef WIDECHAR 191#ifdef WIDECHAR
192 if (fd == -2) { 192 if (fd == -2) {
193 len = wcstombs(NULL, path, 0); 193 len = wcstombs(NULL, path, 0);
194 if (len == (size_t)-1) 194 if (len == (z_size_t)-1)
195 len = 0; 195 len = 0;
196 } 196 }
197 else 197 else