]> granicus.if.org Git - nethack/commitdiff
Clear a warning
authornethack.allison <nethack.allison>
Sun, 20 Jan 2002 15:07:56 +0000 (15:07 +0000)
committernethack.allison <nethack.allison>
Sun, 20 Jan 2002 15:07:56 +0000 (15:07 +0000)
src/mcastu.c(603) : warning C4244: 'initializing' :
conversion from 'long ' to 'char ', possible loss of data

M. Allison

src/mcastu.c

index 707570a768cbdcf4e7b2864313295da76672d125..752af2e23c98c953de6fee5e79cebbaf133721f8 100644 (file)
@@ -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;