diff options
author | Sam Maier <smaier@chromium.org> | 2019-11-04 17:59:41 +0000 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-11-04 17:59:41 +0000 |
commit | 63bb48cebaec69415fef04dec77d1bd505d05d31 (patch) | |
tree | 7b841aa76b743db4141b09a2e7f7c7c28032a6d8 /google | |
parent | 403ca5ad3a324530113a89a20fcabcea92242721 (diff) | |
download | zlib-63bb48cebaec69415fef04dec77d1bd505d05d31.tar.gz |
Adding const to GetUncompressedSize
Change-Id: Ib538c60f5e1fa2e81432bc0992a482aced6eb7cb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1897847
Auto-Submit: Sam Maier <smaier@chromium.org>
Reviewed-by: Adenilson Cavalcanti <cavalcantii@chromium.org>
Commit-Queue: Sam Maier <smaier@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#712161}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 60b63e2425bcb12ffd47527af414bd1ad8e7e631
Diffstat (limited to 'google')
-rw-r--r-- | google/compression_utils_portable.cc | 2 | ||||
-rw-r--r-- | google/compression_utils_portable.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/google/compression_utils_portable.cc b/google/compression_utils_portable.cc index d092b03..f4f36b6 100644 --- a/google/compression_utils_portable.cc +++ b/google/compression_utils_portable.cc @@ -34,7 +34,7 @@ uLongf GZipExpectedCompressedSize(uLongf input_size) { // The expected decompressed size is stored in the last // 4 bytes of |input| in LE. -uint32_t GetUncompressedSize(Bytef* compressed_data, size_t length) { +uint32_t GetUncompressedSize(const Bytef* compressed_data, size_t length) { uint32_t size; if (length < sizeof(size)) return 0; diff --git a/google/compression_utils_portable.h b/google/compression_utils_portable.h index 17ce53a..5f8b46e 100644 --- a/google/compression_utils_portable.h +++ b/google/compression_utils_portable.h @@ -19,7 +19,7 @@ namespace zlib_internal { uLongf GZipExpectedCompressedSize(uLongf input_size); -uint32_t GetUncompressedSize(Bytef* compressed_data, size_t length); +uint32_t GetUncompressedSize(const Bytef* compressed_data, size_t length); int GzipCompressHelper(Bytef* dest, uLongf* dest_length, |