Fix: MSVC warnings (#7423)

This commit is contained in:
glx22
2019-03-28 00:09:33 +01:00
committed by GitHub
parent e817951bfd
commit 66dd7c3879
39 changed files with 88 additions and 88 deletions

View File

@@ -686,7 +686,7 @@ private:
}
}
} else {
this->rows = this->groups.size();
this->rows = (uint)this->groups.size();
}
this->vscroll->SetCount(this->rows);
@@ -902,7 +902,7 @@ public:
}
}
} else {
uint max = min(this->vscroll->GetPosition() + this->vscroll->GetCapacity(), this->groups.size());
uint max = min(this->vscroll->GetPosition() + this->vscroll->GetCapacity(), (uint)this->groups.size());
for (uint i = this->vscroll->GetPosition(); i < max; ++i) {
const Group *g = this->groups[i];
SetDParam(0, g->index);