From: nethack.allison Date: Sun, 20 Jan 2002 15:07:56 +0000 (+0000) Subject: Clear a warning X-Git-Tag: MOVE2GIT~3414 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ce634571516b70edf75a9aea1ee3b63f278bc59a;p=nethack Clear a warning src/mcastu.c(603) : warning C4244: 'initializing' : conversion from 'long ' to 'char ', possible loss of data M. Allison --- diff --git a/src/mcastu.c b/src/mcastu.c index 707570a76..752af2e23 100644 --- a/src/mcastu.c +++ b/src/mcastu.c @@ -600,7 +600,7 @@ int spellnum; shieldeff(u.ux, u.uy); You_feel("momentarily dizzy."); } else { - boolean oldprop = Confusion; + boolean oldprop = !!Confusion; dmg = (int)mtmp->m_lev; if (Half_spell_damage) dmg = (dmg + 1) / 2;