From: Nicholas Clark Date: Fri, 22 May 2009 09:11:33 +0000 (+0100) Subject: In Perl_magic_setsig(), silence a "possible loss of data" warning. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=58a26b1261706b3fb21352c450891808565259c4;p=p5sagit%2Fp5-mst-13.2.git In Perl_magic_setsig(), silence a "possible loss of data" warning. --- diff --git a/mg.c b/mg.c index c6f483e..e9e4214 100644 --- a/mg.c +++ b/mg.c @@ -1423,7 +1423,8 @@ Perl_magic_setsig(pTHX_ SV *sv, MAGIC *mg) else { i = (I16)mg->mg_private; if (!i) { - mg->mg_private = i = whichsig(s); /* ...no, a brick */ + i = whichsig(s); /* ...no, a brick */ + mg->mg_private = (U16)i; } if (i <= 0) { if (sv && ckWARN(WARN_SIGNAL))