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

Unified Diff: remoting/protocol/message_decoder.cc

Issue 1542203002: Switch to standard integer types in remoting/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@int-remoting-host
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 | « remoting/protocol/me2me_host_authenticator_factory.h ('k') | remoting/protocol/message_decoder_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/message_decoder.cc
diff --git a/remoting/protocol/message_decoder.cc b/remoting/protocol/message_decoder.cc
index 20d79bfad8a721bf7b4bfd621575801386353e5b..3da1b1b16edb1d9c07723b53b90627ff565ca997 100644
--- a/remoting/protocol/message_decoder.cc
+++ b/remoting/protocol/message_decoder.cc
@@ -4,6 +4,8 @@
#include "remoting/protocol/message_decoder.h"
+#include <stdint.h>
+
#include "base/logging.h"
#include "net/base/io_buffer.h"
#include "remoting/base/compound_buffer.h"
@@ -52,7 +54,7 @@ CompoundBuffer* MessageDecoder::GetNextMessage() {
bool MessageDecoder::GetPayloadSize(int* size) {
// The header has a size of 4 bytes.
- const int kHeaderSize = sizeof(int32);
+ const int kHeaderSize = sizeof(int32_t);
if (buffer_.total_bytes() < kHeaderSize)
return false;
« no previous file with comments | « remoting/protocol/me2me_host_authenticator_factory.h ('k') | remoting/protocol/message_decoder_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698