From: Gisle Aas Date: Mon, 23 Jan 2006 12:33:02 +0000 (+0000) Subject: Avoid warning with MS Visual C compiler. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f5a22bee2f0219400ae1a034d612824b40d53944;p=p5sagit%2Fp5-mst-13.2.git Avoid warning with MS Visual C compiler. Encode.xs(443) : warning C4761: integral size mismatch in argument; conversion supplied p4raw-id: //depot/perl@26922 --- diff --git a/ext/Encode/Encode.xs b/ext/Encode/Encode.xs index 6cc4a6a..b60ead4 100644 --- a/ext/Encode/Encode.xs +++ b/ext/Encode/Encode.xs @@ -412,14 +412,14 @@ CODE: /* * PerlIO check -- we assume the object is of PerlIO if renewed */ - int renewed = 0; + bool renewed = 0; dSP; ENTER; SAVETMPS; PUSHMARK(sp); XPUSHs(obj); PUTBACK; if (call_method("renewed",G_SCALAR) == 1) { SPAGAIN; - renewed = POPi; + renewed = (bool)POPi; PUTBACK; #if 0 fprintf(stderr, "renewed == %d\n", renewed);