summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2009-09-19 16:22:49 +0000
committeralberth <alberth@openttd.org>2009-09-19 16:22:49 +0000
commitf7f2d1caa53582f7aafd330d9d13f46d35364a67 (patch)
treead8f2197c276b215dd96907beaa4c7b2eb6e0342 /src
parentca91a97826ad5de23855d0fe9a219f4889a8cd9e (diff)
downloadopenttd-f7f2d1caa53582f7aafd330d9d13f46d35364a67.tar.xz
(svn r17580) -Fix (r17541): Fix signed/unsigned mismatch with MSVC 2008.
Diffstat (limited to 'src')
-rw-r--r--src/newgrf_gui.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/newgrf_gui.cpp b/src/newgrf_gui.cpp
index 85680aa8e..03d6758e1 100644
--- a/src/newgrf_gui.cpp
+++ b/src/newgrf_gui.cpp
@@ -300,10 +300,10 @@ public:
GfxFillRect(r.left + 1, r.top + 1, r.right - 1, r.bottom - 1, 0xD7);
uint y = r.top + WD_FRAMERECT_TOP;
- int min_index = this->vscroll.GetPosition();
- int max_index = min(min_index + this->vscroll.GetCapacity(), this->grfs.Length());
+ uint min_index = this->vscroll.GetPosition();
+ uint max_index = min(min_index + this->vscroll.GetCapacity(), this->grfs.Length());
- for (int i = min_index; i < max_index; i++)
+ for (uint i = min_index; i < max_index; i++)
{
const GRFConfig *c = this->grfs[i];
bool h = c == this->sel;