From dde4de5e20a347bc64fbac84504f1a629ea2b2d2 Mon Sep 17 00:00:00 2001 From: belugas Date: Fri, 27 Jun 2008 02:26:51 +0000 Subject: (svn r13644) -Fix(r13643): compare an apple with an apple. MSVC seems to not care, but some other compilers do. Thanks to glx :) --- src/toolbar_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/toolbar_gui.cpp b/src/toolbar_gui.cpp index c379f96f5..375e518bc 100644 --- a/src/toolbar_gui.cpp +++ b/src/toolbar_gui.cpp @@ -843,7 +843,7 @@ static void SplitToolbar(Window *w) static const byte *arrangements[] = { arrange14, arrange15, arrange16, arrange17, arrange18, arrange19 }; - uint max_icons = max(TBP_TOOLBAR_MINBUTTON, (w->width + TBP_BUTTONWIDTH / 2) / TBP_BUTTONWIDTH); + uint max_icons = max(TBP_TOOLBAR_MINBUTTON, (ToolBarProperties)((w->width + TBP_BUTTONWIDTH / 2) / TBP_BUTTONWIDTH)); assert(max_icons >= TBP_TOOLBAR_MINBUTTON && max_icons <= TBP_NORMAL_MAXBUTTON); -- cgit v1.2.3-70-g09d2