From 8d92a6f68d158e3400d419e9d17aca8058f56fa8 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Wed, 27 Sep 2023 23:13:36 +0300 Subject: [PATCH 36/36] tile_move_cost_ptrs(): Make cardinal_move signed It can contain value -1 in it. See osdn #48737 Signed-off-by: Marko Lindqvist --- common/map.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/map.c b/common/map.c index a3b7f8622d..c52e42dfd4 100644 --- a/common/map.c +++ b/common/map.c @@ -774,7 +774,7 @@ int tile_move_cost_ptrs(const struct civ_map *nmap, { const struct unit_class *pclass = utype_class(punittype); int cost; - char cardinal_move = -1; + signed char cardinal_move = -1; bool ri; /* Try to exit early for detectable conditions */ -- 2.40.1