This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Do not cast pointers into I32s.
authorJarkko Hietaniemi <jhi@iki.fi>
Mon, 28 Feb 2000 23:59:59 +0000 (23:59 +0000)
committerJarkko Hietaniemi <jhi@iki.fi>
Mon, 28 Feb 2000 23:59:59 +0000 (23:59 +0000)
p4raw-id: //depot/cfgperl@5334

mg.c

diff --git a/mg.c b/mg.c
index a3607eb..4fe40a1 100644 (file)
--- a/mg.c
+++ b/mg.c
@@ -2175,7 +2175,7 @@ static void
 restore_magic(pTHXo_ void *p)
 {
     dTHR;
-    MGS* mgs = SSPTR((I32)p, MGS*);
+    MGS* mgs = SSPTR(PTR2IV(p), MGS*);
     SV* sv = mgs->mgs_sv;
 
     if (!sv)