From dae5dceb851dcae68948072a4d4de37f434bb476 Mon Sep 17 00:00:00 2001 From: alberth Date: Sat, 24 Oct 2009 20:28:54 +0000 Subject: [PATCH] (svn r17861) -Fix (r17860): max(uint, int) does not exist. --- src/vehicle_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp index 38f92b1a4f..00ae8ea9bc 100644 --- a/src/vehicle_gui.cpp +++ b/src/vehicle_gui.cpp @@ -340,7 +340,7 @@ struct RefitWindow : public Window { size->height = resize->height * 8; break; case VRW_INFOPANEL: - size->height = max(size->height, WD_FRAMERECT_TOP + 2 * FONT_HEIGHT_NORMAL + WD_FRAMERECT_BOTTOM); + size->height = max(size->height, (uint)(WD_FRAMERECT_TOP + 2 * FONT_HEIGHT_NORMAL + WD_FRAMERECT_BOTTOM)); break; } }