From 8481fb4b7b4f3a1e8ec7fdb8805b8932b2f51f53 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Mon, 4 Sep 2023 01:00:30 +0100 Subject: [PATCH] Fix compiler warnings on Windows ARM64 --- src/landscape.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/landscape.cpp b/src/landscape.cpp index 1eb513f6eb..47911d6ebb 100644 --- a/src/landscape.cpp +++ b/src/landscape.cpp @@ -779,7 +779,9 @@ void RunTileLoop(bool apply_day_length) while (count--) { /* Get the next tile in sequence using a Galois LFSR. */ TileIndex next = (tile >> 1) ^ (-(int32)(tile & 1) & feedback); - if (count > 0) PREFETCH_NTA(&_m[next]); + if (count > 0) { + PREFETCH_NTA(&_m[next]); + } _tile_type_procs[GetTileType(tile)]->tile_loop_proc(tile); @@ -804,7 +806,9 @@ void RunAuxiliaryTileLoop() while (count--) { /* Get the next tile in sequence using a Galois LFSR. */ TileIndex next = (tile >> 1) ^ (-(int32)(tile & 1) & feedback); - if (count > 0) PREFETCH_NTA(&_m[next]); + if (count > 0) { + PREFETCH_NTA(&_m[next]); + } if (IsFloodingTypeTile(tile) && !IsNonFloodingWaterTile(tile)) { FloodingBehaviour fb = GetFloodingBehaviour(tile);