# HG changeset patch # User KUDr # Date 1173482781 0 # Node ID 06b4750ad77840cbca3e149cca87f6fcccb860c7 # Parent e4ce4b1aa3bf2836ac8bcc0a6b710adacc578f0f (svn r9081) -Fix(r9080): UINT32_MAX is undefined on MSVC. Use std::numeric_limits::max() instead. diff -r e4ce4b1aa3bf -r 06b4750ad778 src/station_gui.cpp --- a/src/station_gui.cpp Fri Mar 09 22:55:57 2007 +0000 +++ b/src/station_gui.cpp Fri Mar 09 23:26:21 2007 +0000 @@ -269,7 +269,7 @@ sl->flags &= ~SL_RESORT; } -static uint32 _cargo_filter = UINT32_MAX; +static uint32 _cargo_filter = std::numeric_limits::max(); static void PlayerStationsWndProc(Window *w, WindowEvent *e) { @@ -282,7 +282,7 @@ switch (e->event) { case WE_CREATE: /* set up resort timer */ - if (_cargo_filter == UINT32_MAX) _cargo_filter = _cargo_mask; + if (_cargo_filter == std::numeric_limits::max()) _cargo_filter = _cargo_mask; for (uint i = 0; i < 5; i++) { if (HASBIT(facilities, i)) LowerWindowWidget(w, i + STATIONLIST_WIDGET_TRAIN); diff -r e4ce4b1aa3bf -r 06b4750ad778 src/stdafx.h --- a/src/stdafx.h Fri Mar 09 22:55:57 2007 +0000 +++ b/src/stdafx.h Fri Mar 09 23:26:21 2007 +0000 @@ -20,6 +20,8 @@ # define INT64_MAX 9223372036854775807LL #endif +#include + #include #include #include