From: Nicholas Clark Date: Sat, 29 Mar 2008 07:08:50 +0000 (+0000) Subject: Fix compiler warning about comparison of pointer types. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=cddfcddc190fa3c9953973822c35e3baa71181f0;p=p5sagit%2Fp5-mst-13.2.git Fix compiler warning about comparison of pointer types. p4raw-id: //depot/perl@33596 --- diff --git a/sv.c b/sv.c index 8d986b7..f2b24a6 100644 --- a/sv.c +++ b/sv.c @@ -516,8 +516,10 @@ static void do_clean_all(pTHX_ SV *const sv) { dVAR; - if (sv == PL_fdpid || sv == PL_strtab) /* don't clean pid table and strtab */ + if (sv == (SV*) PL_fdpid || sv == (SV *)PL_strtab) { + /* don't clean pid table and strtab */ return; + } DEBUG_D((PerlIO_printf(Perl_debug_log, "Cleaning loops: SV at 0x%"UVxf"\n", PTR2UV(sv)) )); SvFLAGS(sv) |= SVf_BREAK; SvREFCNT_dec(sv);