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

Unified Diff: tools/cygprofile/cygprofile.cc

Issue 1549203002: Switch to standard integer types in tools/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « tools/battor_agent/battor_protocol_types.h ('k') | tools/cygprofile/cygprofile_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/cygprofile/cygprofile.cc
diff --git a/tools/cygprofile/cygprofile.cc b/tools/cygprofile/cygprofile.cc
index 216381ad3836e93a6ebe49df791175bd2395067a..6b5182dec7ffc355124719557316a2510733e788 100644
--- a/tools/cygprofile/cygprofile.cc
+++ b/tools/cygprofile/cygprofile.cc
@@ -6,6 +6,8 @@
#include <fcntl.h>
#include <pthread.h>
+#include <stddef.h>
+#include <stdint.h>
#include <sys/stat.h>
#include <sys/syscall.h>
#include <sys/time.h>
@@ -85,11 +87,11 @@ struct ImmutableFileHeaderLine {
static bool ParseAddress(const std::string& line,
size_t start_offset,
size_t length,
- uint64* result) {
+ uint64_t* result) {
if (start_offset >= line.length())
return false;
- uint64 address;
+ uint64_t address;
const bool ret = HexStringToUInt64(
base::StringPiece(line.c_str() + start_offset, length), &address);
if (!ret)
@@ -112,10 +114,10 @@ struct ImmutableFileHeaderLine {
continue;
const size_t address_length = line.find('-');
- uint64 start_address = 0;
+ uint64_t start_address = 0;
CHECK(ParseAddress(line, 0, address_length, &start_address));
- uint64 end_address = 0;
+ uint64_t end_address = 0;
CHECK(ParseAddress(line, address_length + 1, address_length,
&end_address));
« no previous file with comments | « tools/battor_agent/battor_protocol_types.h ('k') | tools/cygprofile/cygprofile_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698