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

Unified Diff: remoting/protocol/port_range.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/port_range.h ('k') | remoting/protocol/protocol_mock_objects.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/port_range.cc
diff --git a/remoting/protocol/port_range.cc b/remoting/protocol/port_range.cc
index ca6408991a6e87bcadc85483dcbe4ebb06188f3a..4ea0266b798f33fda44934f63e2562a6fe95d32e 100644
--- a/remoting/protocol/port_range.cc
+++ b/remoting/protocol/port_range.cc
@@ -5,6 +5,7 @@
#include "remoting/protocol/port_range.h"
#include <limits.h>
+#include <stddef.h>
#include <stdlib.h>
#include "base/strings/string_number_conversions.h"
@@ -40,8 +41,8 @@ bool PortRange::Parse(const std::string& port_range, PortRange* result) {
if (min_port == 0 || min_port > max_port || max_port > USHRT_MAX)
return false;
- result->min_port = static_cast<uint16>(min_port);
- result->max_port = static_cast<uint16>(max_port);
+ result->min_port = static_cast<uint16_t>(min_port);
+ result->max_port = static_cast<uint16_t>(max_port);
return true;
}
« no previous file with comments | « remoting/protocol/port_range.h ('k') | remoting/protocol/protocol_mock_objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698