summaryrefslogtreecommitdiffstats
path: root/minzip
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2014-02-06 03:14:22 +0100
committerGerrit Code Review <noreply-gerritcodereview@google.com>2014-02-06 03:14:22 +0100
commita5d105e2397d81537facd93fd8a9d3e263d57dc9 (patch)
treedbf70c82b2e8d48e6d6515689b47cfe327f71b49 /minzip
parentMerge "minadbd: remove dead code" (diff)
parentrecovery: fix building with pointer-to-int errors turned on (diff)
downloadandroid_bootable_recovery-a5d105e2397d81537facd93fd8a9d3e263d57dc9.tar
android_bootable_recovery-a5d105e2397d81537facd93fd8a9d3e263d57dc9.tar.gz
android_bootable_recovery-a5d105e2397d81537facd93fd8a9d3e263d57dc9.tar.bz2
android_bootable_recovery-a5d105e2397d81537facd93fd8a9d3e263d57dc9.tar.lz
android_bootable_recovery-a5d105e2397d81537facd93fd8a9d3e263d57dc9.tar.xz
android_bootable_recovery-a5d105e2397d81537facd93fd8a9d3e263d57dc9.tar.zst
android_bootable_recovery-a5d105e2397d81537facd93fd8a9d3e263d57dc9.zip
Diffstat (limited to '')
-rw-r--r--minzip/Zip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/minzip/Zip.c b/minzip/Zip.c
index 439e5d9cd..f4f38a9ff 100644
--- a/minzip/Zip.c
+++ b/minzip/Zip.c
@@ -772,7 +772,7 @@ bool mzReadZipEntry(const ZipArchive* pArchive, const ZipEntry* pEntry,
static bool writeProcessFunction(const unsigned char *data, int dataLen,
void *cookie)
{
- int fd = (int)cookie;
+ int fd = (int)(intptr_t)cookie;
ssize_t soFar = 0;
while (true) {
@@ -802,7 +802,7 @@ bool mzExtractZipEntryToFile(const ZipArchive *pArchive,
const ZipEntry *pEntry, int fd)
{
bool ret = mzProcessZipEntryContents(pArchive, pEntry, writeProcessFunction,
- (void*)fd);
+ (void*)(intptr_t)fd);
if (!ret) {
LOGE("Can't extract entry to file.\n");
return false;