diff options
author | glx22 <glx22@users.noreply.github.com> | 2019-03-28 00:09:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-28 00:09:33 +0100 |
commit | 66dd7c3879123bb99b712375b66b577f81d53a96 (patch) | |
tree | 6231635658dab5ba63b776e9350884c083617cb1 /src/company_gui.cpp | |
parent | e817951bfdc229b404d5fec188c67f5202a0e774 (diff) | |
download | openttd-66dd7c3879123bb99b712375b66b577f81d53a96.tar.xz |
Fix: MSVC warnings (#7423)
Diffstat (limited to 'src/company_gui.cpp')
-rw-r--r-- | src/company_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/company_gui.cpp b/src/company_gui.cpp index e5dbc86a4..a3f8a24b6 100644 --- a/src/company_gui.cpp +++ b/src/company_gui.cpp @@ -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); |