diff options
Diffstat (limited to 'contrib/minizip/ioapi.c')
-rw-r--r-- | contrib/minizip/ioapi.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/minizip/ioapi.c b/contrib/minizip/ioapi.c index 1571914..d666e5a 100644 --- a/contrib/minizip/ioapi.c +++ b/contrib/minizip/ioapi.c | |||
@@ -58,7 +58,7 @@ ZPOS64_T call_ztell64 (const zlib_filefunc64_32_def* pfilefunc,voidpf filestream | |||
58 | return (*(pfilefunc->zfile_func64.ztell64_file)) (pfilefunc->zfile_func64.opaque,filestream); | 58 | return (*(pfilefunc->zfile_func64.ztell64_file)) (pfilefunc->zfile_func64.opaque,filestream); |
59 | else | 59 | else |
60 | { | 60 | { |
61 | uLong tell_uLong = (*(pfilefunc->ztell32_file))(pfilefunc->zfile_func64.opaque,filestream); | 61 | uLong tell_uLong = (uLong)(*(pfilefunc->ztell32_file))(pfilefunc->zfile_func64.opaque,filestream); |
62 | if ((tell_uLong) == MAXU32) | 62 | if ((tell_uLong) == MAXU32) |
63 | return (ZPOS64_T)-1; | 63 | return (ZPOS64_T)-1; |
64 | else | 64 | else |
@@ -160,7 +160,7 @@ static ZPOS64_T ZCALLBACK ftell64_file_func (voidpf opaque, voidpf stream) | |||
160 | { | 160 | { |
161 | (void)opaque; | 161 | (void)opaque; |
162 | ZPOS64_T ret; | 162 | ZPOS64_T ret; |
163 | ret = FTELLO_FUNC((FILE *)stream); | 163 | ret = (ZPOS64_T)FTELLO_FUNC((FILE *)stream); |
164 | return ret; | 164 | return ret; |
165 | } | 165 | } |
166 | 166 | ||
@@ -183,7 +183,7 @@ static long ZCALLBACK fseek_file_func (voidpf opaque, voidpf stream, uLong offs | |||
183 | default: return -1; | 183 | default: return -1; |
184 | } | 184 | } |
185 | ret = 0; | 185 | ret = 0; |
186 | if (fseek((FILE *)stream, offset, fseek_origin) != 0) | 186 | if (fseek((FILE *)stream, (long)offset, fseek_origin) != 0) |
187 | ret = -1; | 187 | ret = -1; |
188 | return ret; | 188 | return ret; |
189 | } | 189 | } |
@@ -208,7 +208,7 @@ static long ZCALLBACK fseek64_file_func (voidpf opaque, voidpf stream, ZPOS64_T | |||
208 | } | 208 | } |
209 | ret = 0; | 209 | ret = 0; |
210 | 210 | ||
211 | if(FSEEKO_FUNC((FILE *)stream, offset, fseek_origin) != 0) | 211 | if(FSEEKO_FUNC((FILE *)stream, (long)offset, fseek_origin) != 0) |
212 | ret = -1; | 212 | ret = -1; |
213 | 213 | ||
214 | return ret; | 214 | return ret; |