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

Unified Diff: courgette/memory_allocator.cc

Issue 1543643002: Switch to standard integer types in courgette/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 5 years 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
« no previous file with comments | « courgette/memory_allocator.h ('k') | courgette/memory_allocator_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: courgette/memory_allocator.cc
diff --git a/courgette/memory_allocator.cc b/courgette/memory_allocator.cc
index 5b92c8003060d03483b8178bdc68dcda1442f31b..e83a293ae6e474d40b09e3abf03dded377ae89e2 100644
--- a/courgette/memory_allocator.cc
+++ b/courgette/memory_allocator.cc
@@ -4,6 +4,9 @@
#include "courgette/memory_allocator.h"
+#include <stddef.h>
+#include <stdint.h>
+
#include <map>
#include "base/files/file_util.h"
@@ -108,7 +111,7 @@ bool TempMapping::Initialize(size_t size) {
}
void* TempMapping::memory() const {
- uint8* mem = reinterpret_cast<uint8*>(mapping_.view());
+ uint8_t* mem = reinterpret_cast<uint8_t*>(mapping_.view());
// The 'this' pointer is written at the start of mapping_.view(), so
// go past it. (See Initialize()).
if (mem)
« no previous file with comments | « courgette/memory_allocator.h ('k') | courgette/memory_allocator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698