Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1688)

Unified Diff: src/core/model/wall-clock-synchronizer.cc

Issue 336970043: Eliminate Visual Studio compiler warnings (Closed)
Patch Set: Updates to patch for review comments Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/core/model/wall-clock-synchronizer.cc
===================================================================
--- a/src/core/model/wall-clock-synchronizer.cc
+++ b/src/core/model/wall-clock-synchronizer.cc
@@ -391,7 +391,7 @@
{
NS_LOG_FUNCTION (this << ns << tv);
NS_ASSERT ((ns % US_PER_NS) == 0);
- tv->tv_sec = ns / NS_PER_SEC;
+ tv->tv_sec = static_cast<long> (ns / NS_PER_SEC);
tv->tv_usec = (ns % NS_PER_SEC) / US_PER_NS;
}

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b