summaryrefslogtreecommitdiff
path: root/mg.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2000-02-28 23:59:59 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2000-02-28 23:59:59 +0000
commit48944bdf88abc95632c13b4206704af5887baf4e (patch)
treee7314b536fce3b427f184b379b30cbd43d814dd5 /mg.c
parentbab3591f9fe41314b6f0fcfe82b37895cadc6fc3 (diff)
downloadperl-48944bdf88abc95632c13b4206704af5887baf4e.tar.gz
Do not cast pointers into I32s.
p4raw-id: //depot/cfgperl@5334
Diffstat (limited to 'mg.c')
-rw-r--r--mg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mg.c b/mg.c
index a3607eb197..4fe40a1c45 100644
--- 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)