diff options
author | Mark Adler <madler@alumni.caltech.edu> | 2016-12-03 10:27:14 -0800 |
---|---|---|
committer | Mark Adler <madler@alumni.caltech.edu> | 2016-12-04 07:48:48 -0800 |
commit | ca50ebd4dfd08dfd7e8c8bb087278e158cd67720 (patch) | |
tree | 9262ad9bb1dde6992b41093614d75d63eea2bf31 /gzlib.c | |
parent | c5ee34c28a9144b1b5a5021d05ed29940c53010c (diff) | |
download | zlib-ca50ebd4dfd08dfd7e8c8bb087278e158cd67720.tar.gz |
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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -94,7 +94,7 @@ local gzFile gz_open(path, fd, mode) const char *mode; { gz_statep state; - size_t len; + z_size_t len; int oflag; #ifdef O_CLOEXEC int cloexec = 0; @@ -191,7 +191,7 @@ local gzFile gz_open(path, fd, mode) #ifdef WIDECHAR if (fd == -2) { len = wcstombs(NULL, path, 0); - if (len == (size_t)-1) + if (len == (z_size_t)-1) len = 0; } else |