commit | 08c4e27baaa7b40732b99642e1f21bf889d022ef | [log] [tgz] |
---|---|---|
author | Andrew de los Reyes <adlr@chromium.org> | Thu Apr 15 14:02:17 2010 -0700 |
committer | Andrew de los Reyes <adlr@chromium.org> | Thu Apr 15 14:02:17 2010 -0700 |
tree | 816583a62961b5caa1f1e13ba74e88ff070cf2c6 | |
parent | b10320d4f76a2d263566f6eed471921382fae800 [diff] [blame] |
update engine: 32- and 64-bit compile Review URL: http://codereview.chromium.org/1599029
diff --git a/gzip.cc b/gzip.cc index 9643724..5fbd043 100644 --- a/gzip.cc +++ b/gzip.cc
@@ -93,7 +93,7 @@ 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);