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

Unified Diff: src/core/test/type-id-test-suite.cc

Issue 336970043: Eliminate Visual Studio compiler warnings (Closed)
Patch Set: Review and update of patch set to make sure all comments are addressed Created 6 years 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/test/type-id-test-suite.cc
===================================================================
--- a/src/core/test/type-id-test-suite.cc
+++ b/src/core/test/type-id-test-suite.cc
@@ -76,7 +76,7 @@
cout << suite << "TypeId list:" << endl;
cout << suite << "TypeId Chain hash Name" << endl;
- for (uint32_t i = 0; i < nids; ++i)
+ for (uint16_t i = 0; i < nids; ++i)
{
const TypeId tid = TypeId::GetRegistered (i);
cout << suite << "" << std::setw(6) << tid.GetUid ();
@@ -363,7 +363,7 @@
int start = clock ();
for (uint32_t j = 0; j < REPETITIONS; ++j)
{
- for (uint32_t i = 0; i < nids; ++i)
+ for (uint16_t i = 0; i < nids; ++i)
{
const TypeId tid = TypeId::GetRegistered (i);
const TypeId sid = TypeId::LookupByName (tid.GetName ());
@@ -375,7 +375,7 @@
start = clock ();
for (uint32_t j = 0; j < REPETITIONS; ++j)
{
- for (uint32_t i = 0; i < nids; ++i)
+ for (uint16_t i = 0; i < nids; ++i)
{
const TypeId tid = TypeId::GetRegistered (i);
const TypeId sid = TypeId::LookupByHash (tid.GetHash ());

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