From c7a209f69085f7ed4378e4bb17bf26e746cbd163 Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Mon, 8 Apr 2019 06:27:51 +0000 Subject: [PATCH] SW: Fix -Wnarrowing warning git-svn-id: https://svn.eduke32.com/eduke32@7527 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/sw/src/weapon.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/sw/src/weapon.cpp b/source/sw/src/weapon.cpp index fb22b438d..c410cdd95 100644 --- a/source/sw/src/weapon.cpp +++ b/source/sw/src/weapon.cpp @@ -4647,7 +4647,7 @@ WeaponMoveHit(short SpriteNum) case HIT_WALL: { - hitdata_t hitinfo = { { 0, 0, 0 }, -2, NORM_WALL(u->ret), -2 }; + hitdata_t hitinfo = { { 0, 0, 0 }, -2, (int16_t)NORM_WALL(u->ret), -2 }; WALLp wph = &wall[hitinfo.wall]; SECTOR_OBJECTp sop;