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

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

Issue 1718001: AU: Class to perform delta updates. (Closed)
Patch Set: fixes 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/extent_writer.cc
diff --git a/src/platform/update_engine/extent_writer.cc b/src/platform/update_engine/extent_writer.cc
index 9f6fbf0837a70ab040aeaf7473854528b85a1416..baac66cbdd5283ee836c9d4cef832869dfa985cf 100644
--- a/src/platform/update_engine/extent_writer.cc
+++ b/src/platform/update_engine/extent_writer.cc
@@ -6,6 +6,7 @@
#include <errno.h>
#include <unistd.h>
#include <algorithm>
+#include "update_engine/graph_types.h"
#include "update_engine/utils.h"
using std::min;
@@ -19,12 +20,12 @@ bool DirectExtentWriter::Write(const void* bytes, size_t count) {
size_t bytes_written = 0;
while (count - bytes_written > 0) {
TEST_AND_RETURN_FALSE(next_extent_index_ < extents_.size());
- uint64 bytes_remaining_next_extent =
+ uint64_t bytes_remaining_next_extent =
extents_[next_extent_index_].num_blocks() * block_size_ -
extent_bytes_written_;
CHECK_NE(bytes_remaining_next_extent, 0);
size_t bytes_to_write =
- static_cast<size_t>(min(static_cast<uint64>(count - bytes_written),
+ static_cast<size_t>(min(static_cast<uint64_t>(count - bytes_written),
bytes_remaining_next_extent));
TEST_AND_RETURN_FALSE(bytes_to_write > 0);

Powered by Google App Engine
This is Rietveld 408576698