From 35d5a197d6f93e05eb358ed0a30db9ab2645911b Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 9 Aug 2009 19:06:35 +0000 Subject: (svn r17138) -Fix: some MSVC 64 bits compiler warnings --- src/saveload/waypoint_sl.cpp | 2 +- src/settings_gui.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/saveload/waypoint_sl.cpp b/src/saveload/waypoint_sl.cpp index c424e5739..dccfb86aa 100644 --- a/src/saveload/waypoint_sl.cpp +++ b/src/saveload/waypoint_sl.cpp @@ -47,7 +47,7 @@ static void UpdateWaypointOrder(Order *o) for (OldWaypoint *wp = _old_waypoints.Begin(); wp != _old_waypoints.End(); wp++) { if (wp->index != o->GetDestination()) continue; - o->SetDestination(wp->new_index); + o->SetDestination((DestinationID)wp->new_index); return; } } diff --git a/src/settings_gui.cpp b/src/settings_gui.cpp index 602ed2c0c..5578cc8cd 100644 --- a/src/settings_gui.cpp +++ b/src/settings_gui.cpp @@ -615,7 +615,7 @@ public: if (x >= 10) { /* Increase button clicked */ - val = min(val + sdb->interval, sdb->max); + val = min(val + sdb->interval, (int32)sdb->max); this->clicked_increase = true; } else { /* Decrease button clicked */ -- cgit v1.2.3-70-g09d2