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

Unified Diff: chromeos/binder/transaction_data_reader.cc

Issue 1540803002: Switch to standard integer types in chromeos/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more includes 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 | « chromeos/binder/transaction_data_reader.h ('k') | chromeos/binder/transaction_data_reader_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/binder/transaction_data_reader.cc
diff --git a/chromeos/binder/transaction_data_reader.cc b/chromeos/binder/transaction_data_reader.cc
index cf206ae69f6fe8d20dda13649461a45bbe9f48bb..4505911652d1329337bfc9a22866bdd4e00362e3 100644
--- a/chromeos/binder/transaction_data_reader.cc
+++ b/chromeos/binder/transaction_data_reader.cc
@@ -4,6 +4,9 @@
#include "chromeos/binder/transaction_data_reader.h"
+#include <stddef.h>
+#include <stdint.h>
+
#include "chromeos/binder/transaction_data.h"
namespace binder {
@@ -32,19 +35,19 @@ bool TransactionDataReader::ReadData(void* buf, size_t n) {
return reader_.Read(buf, n) && reader_.Skip(AddPadding(n) - n);
}
-bool TransactionDataReader::ReadInt32(int32* value) {
+bool TransactionDataReader::ReadInt32(int32_t* value) {
return ReadData(value, sizeof(*value));
}
-bool TransactionDataReader::ReadUint32(uint32* value) {
+bool TransactionDataReader::ReadUint32(uint32_t* value) {
return ReadData(value, sizeof(*value));
}
-bool TransactionDataReader::ReadInt64(int64* value) {
+bool TransactionDataReader::ReadInt64(int64_t* value) {
return ReadData(value, sizeof(*value));
}
-bool TransactionDataReader::ReadUint64(uint64* value) {
+bool TransactionDataReader::ReadUint64(uint64_t* value) {
return ReadData(value, sizeof(*value));
}
« no previous file with comments | « chromeos/binder/transaction_data_reader.h ('k') | chromeos/binder/transaction_data_reader_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698