From bf87c763630edd7b2e22948d1be566a1ea9c30f9 Mon Sep 17 00:00:00 2001 From: Deskull Date: Tue, 5 Feb 2019 13:10:50 +0900 Subject: [PATCH] =?utf8?q?[Fix]=20#37353=20=E5=9E=8B=E3=81=AE=E7=BD=AE?= =?utf8?q?=E6=8F=9B=E3=81=AB=E3=82=88=E3=82=8B=E8=AD=A6=E5=91=8A=E4=BF=AE?= =?utf8?q?=E6=AD=A3=E3=80=82=20/=20Fix=20warning=20for=20type=20replacemen?= =?utf8?q?t.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/cmd4.c | 5 ++--- src/spells1.c | 8 ++++---- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/cmd4.c b/src/cmd4.c index e19262f20..35b0c3e65 100644 --- a/src/cmd4.c +++ b/src/cmd4.c @@ -6213,11 +6213,10 @@ static void display_visual_list(int col, int row, int height, int width, TERM_CO /* Display columns until done */ for (j = 0; j < width; j++) { - TERM_COLOR a; - SYMBOL_CODE c; + TERM_COLOR a, ia; + SYMBOL_CODE c, ic; TERM_LEN x = col + j; TERM_LEN y = row + i; - int ia, ic; /* Bigtile mode uses double width */ if (use_bigtile) x += j; diff --git a/src/spells1.c b/src/spells1.c index f2312bba7..9d6094547 100644 --- a/src/spells1.c +++ b/src/spells1.c @@ -6370,11 +6370,11 @@ bool project(MONSTER_IDX who, POSITION rad, POSITION y, POSITION x, HIT_POINT da for (i = 0; i < path_n; ++i) { - int oy = y; - int ox = x; + POSITION oy = y; + POSITION ox = x; - int ny = GRID_Y(path_g[i]); - int nx = GRID_X(path_g[i]); + POSITION ny = GRID_Y(path_g[i]); + POSITION nx = GRID_X(path_g[i]); /* Advance */ y = ny; -- 2.11.0