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

Unified Diff: webrtc/base/physicalsocketserver.cc

Issue 1835053002: Change default timestamp to 64 bits in all webrtc directories. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Address comments Created 4 years, 8 months 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
Index: webrtc/base/physicalsocketserver.cc
diff --git a/webrtc/base/physicalsocketserver.cc b/webrtc/base/physicalsocketserver.cc
index 708499df531f076af2210137c0eb2ed4795c6bab..bbf9aedb74905d83edf74e884266647b11929771 100644
--- a/webrtc/base/physicalsocketserver.cc
+++ b/webrtc/base/physicalsocketserver.cc
@@ -1463,7 +1463,7 @@ bool PhysicalSocketServer::InstallSignal(int signum, void (*handler)(int)) {
bool PhysicalSocketServer::Wait(int cmsWait, bool process_io) {
int cmsTotal = cmsWait;
int cmsElapsed = 0;
- uint32_t msStart = Time();
+ int64_t msStart = Time();
fWait_ = true;
while (fWait_) {
@@ -1613,7 +1613,7 @@ bool PhysicalSocketServer::Wait(int cmsWait, bool process_io) {
// Break?
if (!fWait_)
break;
- cmsElapsed = TimeSince(msStart);
+ cmsElapsed = static_cast<int>(TimeSince(msStart));
pthatcher1 2016/05/02 16:57:56 Can you leave a comment about why we do this and w
honghaiz3 2016/05/03 21:18:25 Just used int64_t instead. Deferred the type conv
if ((cmsWait != kForever) && (cmsElapsed >= cmsWait)) {
break;
}

Powered by Google App Engine
This is Rietveld 408576698