From 96bfcd587b62785ab4901c11f5c5aa0736e2b752 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Thu, 17 Jun 2021 17:00:33 +0100 Subject: [PATCH] Fix signedness mismatch warning in tunnel length check --- src/road.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/road.cpp b/src/road.cpp index c2315f03e1..51b5c0309a 100644 --- a/src/road.cpp +++ b/src/road.cpp @@ -384,7 +384,7 @@ static TileIndex BuildTunnel(PathNode *current, TileIndex end_tile = INVALID_TIL int end_z; const uint tunnel_length_limit = std::min(_settings_game.construction.max_tunnel_length, 30); - for (int tunnel_length = 1;;tunnel_length++) { + for (uint tunnel_length = 1;; tunnel_length++) { end_tile += delta; if (!IsValidTile(end_tile)) return INVALID_TILE;