summaryrefslogtreecommitdiff
path: root/src/fs/virtfs/zip.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-04-14 19:17:03 +0300
committerAndrei Karas <akaras@inbox.ru>2017-04-14 19:17:03 +0300
commitec8845e596facf709d2a0ac19f518452b8382260 (patch)
tree0165d4965a103ed289c3ad202aa643605d688046 /src/fs/virtfs/zip.cpp
parent928103c5d9c716dbfe0ba2c8ea13b1426b3e768c (diff)
downloadplus-ec8845e596facf709d2a0ac19f518452b8382260.tar.gz
plus-ec8845e596facf709d2a0ac19f518452b8382260.tar.bz2
plus-ec8845e596facf709d2a0ac19f518452b8382260.tar.xz
plus-ec8845e596facf709d2a0ac19f518452b8382260.zip
Fix code style.
Diffstat (limited to 'src/fs/virtfs/zip.cpp')
-rw-r--r--src/fs/virtfs/zip.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fs/virtfs/zip.cpp b/src/fs/virtfs/zip.cpp
index 4ff58d584..f10f8f70d 100644
--- a/src/fs/virtfs/zip.cpp
+++ b/src/fs/virtfs/zip.cpp
@@ -150,7 +150,7 @@ namespace Zip
header->fileName = std::string(
reinterpret_cast<char*>(buf));
prepareFsPath(header->fileName);
- header->dataOffset = ftell(arcFile) + extraFieldLen;
+ header->dataOffset = CAST_S32(ftell(arcFile) + extraFieldLen);
fseek(arcFile, extraFieldLen + header->compressSize, SEEK_CUR);
// pointer on 30 + fileNameLen + extraFieldLen + compressSize
if (findLast(header->fileName, dirSeparator) == false)
@@ -292,7 +292,7 @@ namespace Zip
strm.next_in = in;
strm.avail_in = header->compressSize;
strm.next_out = out;
- strm.avail_out = outSize;
+ strm.avail_out = CAST_U32(outSize);
int ret = inflateInit2(&strm, -MAX_WBITS);
if (ret != Z_OK)