From 3a4398b613670ecb56d52bbaf24447f42eba8391 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Sat, 2 Mar 2024 00:42:08 +0000 Subject: [PATCH] Fix signed/unsigned comparison warning --- src/order_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/order_cmd.cpp b/src/order_cmd.cpp index 4a66fbe6ee..d2e3ce0a0c 100644 --- a/src/order_cmd.cpp +++ b/src/order_cmd.cpp @@ -2923,7 +2923,7 @@ std::vector _remove_order_from_all_vehicles_depots; static bool IsBatchRemoveOrderDepotRemoved(DestinationID destination) { - if (destination / 32 >= _remove_order_from_all_vehicles_depots.size()) return false; + if (static_cast(destination / 32) >= _remove_order_from_all_vehicles_depots.size()) return false; return HasBit(_remove_order_from_all_vehicles_depots[destination / 32], destination % 32); }