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

Unified Diff: src/core/helper/random-variable-stream-helper.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/helper/random-variable-stream-helper.cc
===================================================================
--- a/src/core/helper/random-variable-stream-helper.cc
+++ b/src/core/helper/random-variable-stream-helper.cc
@@ -39,8 +39,9 @@
NS_LOG_FUNCTION_NOARGS ();
NS_ASSERT (stream >= 0);
Config::MatchContainer mc = Config::LookupMatches (path);
- int64_t i = 0;
- for (Config::MatchContainer::Iterator mci = mc.Begin (); mci != mc.End (); ++mci, ++i)
+
+ std::size_t i = 0;
+ for ( ; i < mc.GetN (); ++i)
{
PointerValue ptr = mc.Get (i);
Ptr<RandomVariableStream> rvs = ptr.Get<RandomVariableStream> ();

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