Skip to content

Commit

Permalink
Fix unsigned warning
Browse files Browse the repository at this point in the history
  • Loading branch information
SupSuper committed Nov 30, 2019
1 parent 39ff1d9 commit 950d39b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Mod/MapDataSet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -226,12 +226,12 @@ void MapDataSet::loadData(MCDPatch *patch)

for (size_t i = 0; i < _objects.size(); ++i)
{
if (_objects[i]->getDieMCD() >= _objects.size())
if ((size_t)_objects[i]->getDieMCD() >= _objects.size())
{
Log(LOG_INFO) << "MCD " << _name << " object " << i << " has invalid DieMCD: " << _objects[i]->getDieMCD();
validData = false;
}
if (_objects[i]->getAltMCD() >= _objects.size())
if ((size_t)_objects[i]->getAltMCD() >= _objects.size())
{
Log(LOG_INFO) << "MCD " << _name << " object " << i << " has invalid AltMCD: " << _objects[i]->getAltMCD();
validData = false;
Expand Down

0 comments on commit 950d39b

Please sign in to comment.