crc_finalize(s);
# endif
put_uint32(s, strm->adler);
- put_uint32(s, strm->total_in);
+ put_uint32(s, (uint32_t)strm->total_in);
} else
#endif
{
/* save the path name for error messages */
#ifdef WIDECHAR
if (fd == -2) {
- len = wcstombs(NULL, path, 0);
+ len = wcstombs(NULL, (const wchar_t *)path, 0);
if (len == (size_t)-1)
len = 0;
} else
#ifdef WIDECHAR
if (fd == -2)
if (len) {
- wcstombs(state->path, path, len + 1);
+ wcstombs(state->path, (const wchar_t *)path, len + 1);
} else {
*(state->path) = 0;
}
/* open the file with the appropriate flags (or just use fd) */
state->fd = fd > -1 ? fd : (
#if defined(_WIN32)
- fd == -2 ? _wopen(path, oflag, 0666) :
+ fd == -2 ? _wopen((const wchar_t *)path, oflag, 0666) :
#elif __CYGWIN__
fd == -2 ? open(state->path, oflag, 0666) :
#endif