From db12a5f703927d89cbd723654392d34bce5904c5 Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 8 Sep 2011 17:54:49 +0000 Subject: (svn r22908) -Codechange: silence MSVC warning --- src/tree_gui.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tree_gui.cpp b/src/tree_gui.cpp index 63018f41a..e91675ae5 100644 --- a/src/tree_gui.cpp +++ b/src/tree_gui.cpp @@ -88,8 +88,8 @@ public: offset.x = 0; offset.y = 0; - for (uint i = this->base; i < this->base + this->count; i++) { - if (i >= lengthof(tree_sprites)) return size; + for (int i = this->base; i < this->base + this->count; i++) { + if (i >= (int)lengthof(tree_sprites)) return size; this_size = GetSpriteSize(tree_sprites[i].sprite, &offset); size.width = max(size.width, 2 * max(this_size.width, -offset.x)); size.height = max(size.height, max(this_size.height, -offset.y)); -- cgit v1.2.3-70-g09d2