From 9fc9383c8188186c4ec36146108d05df0948ba22 Mon Sep 17 00:00:00 2001 From: KUDr Date: Sat, 7 Oct 2006 20:31:38 +0000 Subject: (svn r6683) -Fix: '<' signed unsigned mismatch produced by VC8 --- train_gui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/train_gui.c b/train_gui.c index 0782e3874..3ad4ea173 100644 --- a/train_gui.c +++ b/train_gui.c @@ -372,7 +372,7 @@ static void NewRailVehicleWndProc(Window *w, WindowEvent *e) switch (e->we.click.widget) { case BUILD_TRAIN_WIDGET_LIST: { uint i = ((e->we.click.pt.y - 14) / 14) + w->vscroll.pos; - if (i < WP(w,buildtrain_d).num_engines + WP(w,buildtrain_d).num_wagons) { + if (i < (uint)(WP(w,buildtrain_d).num_engines + WP(w,buildtrain_d).num_wagons)) { if (i < WP(w,buildtrain_d).num_engines && HASBIT(WP(w,buildtrain_d).show_engine_wagon, 0)) { WP(w,buildtrain_d).sel_engine = WP(w,buildtrain_d).engines[i]; } else { -- cgit v1.2.3-70-g09d2