Skip to content
Permalink
Browse files

Fix unsigned warning

  • Loading branch information
SupSuper committed Nov 30, 2019
1 parent 39ff1d9 commit 950d39b83cb9f82eefdd017376fa7fc2aaa50931
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/Mod/MapDataSet.cpp
@@ -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;

0 comments on commit 950d39b

Please sign in to comment.
You can’t perform that action at this time.