Mercurial > hg > openttd
changeset 18087:5245b97814bc draft
(svn r22908) -Codechange: silence MSVC warning
author | rubidium <rubidium@openttd.org> |
---|---|
date | Thu, 08 Sep 2011 17:54:49 +0000 |
parents | 2241aae0bd87 |
children | 7e631faec969 |
files | src/tree_gui.cpp |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/tree_gui.cpp +++ b/src/tree_gui.cpp @@ -88,8 +88,8 @@ 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<int>(size.width, 2 * max<int>(this_size.width, -offset.x)); size.height = max<int>(size.height, max<int>(this_size.height, -offset.y));