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

Unified Diff: src/platform/update_engine/utils.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/utils.cc
diff --git a/src/platform/update_engine/utils.cc b/src/platform/update_engine/utils.cc
index e1ed8747fbf4cfde2a6fd9f9cf755a82134220e3..285b1e3ee39693cbc57114f28ef4bb3fc2404a39 100644
--- a/src/platform/update_engine/utils.cc
+++ b/src/platform/update_engine/utils.cc
@@ -80,7 +80,7 @@ void HexDumpArray(const unsigned char* const arr, const size_t length) {
reinterpret_cast<const unsigned char* const>(arr);
LOG(INFO) << "Logging array of length: " << length;
const unsigned int bytes_per_line = 16;
- for (size_t i = 0; i < length; i += bytes_per_line) {
+ for (uint32 i = 0; i < length; i += bytes_per_line) {
Daniel Erat 2010/04/15 00:55:47 uint32_t
const unsigned int bytes_remaining = length - i;
const unsigned int bytes_per_this_line = min(bytes_per_line,
bytes_remaining);

Powered by Google App Engine
This is Rietveld 408576698