summaryrefslogtreecommitdiffstats
path: root/luni/src/main/native/zip.h
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2010-06-03 19:55:20 -0700
committerElliott Hughes <enh@google.com>2010-06-03 19:55:20 -0700
commitabf945fb9ce99d8c2769ac5b2691b2732fa59887 (patch)
treef3fda69f9c0b72dc3afb3c88a127739cc99fe136 /luni/src/main/native/zip.h
parent9b4866d3438f42fb2c0df788989261afe72bf713 (diff)
downloadlibcore-abf945fb9ce99d8c2769ac5b2691b2732fa59887.zip
libcore-abf945fb9ce99d8c2769ac5b2691b2732fa59887.tar.gz
libcore-abf945fb9ce99d8c2769ac5b2691b2732fa59887.tar.bz2
Bullet-proof the lseek/read in Inflater.setFileInput.
Also document why that non-API method exists, and that we don't have benchmarks to support the claimed optimization. Also be more consistent about setting LOG_TAG, and fix a few old-school copyright headers. Change-Id: If9fdc4583eaf91275ed44e2dc56174819d1913d0
Diffstat (limited to 'luni/src/main/native/zip.h')
-rw-r--r--luni/src/main/native/zip.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/luni/src/main/native/zip.h b/luni/src/main/native/zip.h
index 6a4c201..5559a00 100644
--- a/luni/src/main/native/zip.h
+++ b/luni/src/main/native/zip.h
@@ -83,7 +83,7 @@ public:
if (buf != NULL) {
env->GetByteArrayRegion(buf, off, len, &input[0]);
}
- stream.next_in = (Bytef *) &input[0];
+ stream.next_in = reinterpret_cast<Bytef*>(&input[0]);
stream.avail_in = len;
}