summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2008-03-29 07:08:50 +0000
committerNicholas Clark <nick@ccl4.org>2008-03-29 07:08:50 +0000
commitcddfcddc190fa3c9953973822c35e3baa71181f0 (patch)
tree199694ec544bcbf7f551bc9519a82fba28f3c0f0
parentd17ea59705db215628334e7846dd1056ff795f97 (diff)
downloadperl-cddfcddc190fa3c9953973822c35e3baa71181f0.tar.gz
Fix compiler warning about comparison of pointer types.
p4raw-id: //depot/perl@33596
-rw-r--r--sv.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sv.c b/sv.c
index 8d986b7e3a..f2b24a6787 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);