summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1999-12-01 05:15:27 +0000
committerGurusamy Sarathy <gsar@cpan.org>1999-12-01 05:15:27 +0000
commit57b2e4523f4df782c055782388ac1aacff9603ef (patch)
tree41cdd9052302a9bcb75c61bd1c6f02015c7237fe /op.c
parent6e2389900607e3ba1246245908fb3c54e7e4c763 (diff)
downloadperl-57b2e4523f4df782c055782388ac1aacff9603ef.tar.gz
avoid PTR->IV cast warnings
p4raw-id: //depot/perl@4605
Diffstat (limited to 'op.c')
-rw-r--r--op.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/op.c b/op.c
index 6cfc95734b..80fb550010 100644
--- a/op.c
+++ b/op.c
@@ -3365,7 +3365,7 @@ Perl_newSTATEOP(pTHX_ I32 flags, char *label, OP *o)
SV **svp = av_fetch(CopFILEAV(PL_curcop), (I32)CopLINE(cop), FALSE);
if (svp && *svp != &PL_sv_undef && !SvIOK(*svp)) {
(void)SvIOK_on(*svp);
- SvIVX(*svp) = (IV)cop;
+ SvIVX(*svp) = PTR2IV(cop);
}
}