Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(215)

Unified Diff: src/platform/update_engine/gzip.cc

Issue 1599029: update engine: 32- and 64-bit compile (Closed)
Patch Set: int32->int32_t, PRIi64, 80 cols for review Created 10 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/platform/update_engine/gzip.cc
diff --git a/src/platform/update_engine/gzip.cc b/src/platform/update_engine/gzip.cc
index 96437248a8934c5bd15d6355a5558773aa13700d..5fbd043eaa6a17d082876588e86d60a5fc0e5c69 100644
--- a/src/platform/update_engine/gzip.cc
+++ b/src/platform/update_engine/gzip.cc
@@ -93,7 +93,7 @@ bool GzipCompressData(const char* const in, const size_t in_size,
Z_DEFAULT_STRATEGY) == Z_OK);
// guess that output will be roughly half the input size
- *out_size = max(1U, in_size / 2);
+ *out_size = max(static_cast<size_t>(1), in_size / 2);
*out = reinterpret_cast<char*>(malloc(*out_size));
TEST_AND_RETURN_FALSE(*out);

Powered by Google App Engine
This is Rietveld 408576698