summaryrefslogtreecommitdiff
path: root/pp_hot.c
diff options
context:
space:
mode:
authorRick Delaney <rick@consumercontact.com>2007-09-06 10:40:39 -0400
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2007-09-10 09:43:14 +0000
commit934dcd01a67d880a33ac86f3f36dcf355d6f8f7a (patch)
tree716aa31407bc260602c7c1d818114a4a5dfc03f6 /pp_hot.c
parentfef074f7c29876fb6c02244b464e092f2047abda (diff)
downloadperl-934dcd01a67d880a33ac86f3f36dcf355d6f8f7a.tar.gz
Re: [perl #44623] Optimized magic_setisa has bug
Message-ID: <20070906184039.GG9260@bort.ca> p4raw-id: //depot/perl@31838
Diffstat (limited to 'pp_hot.c')
-rw-r--r--pp_hot.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/pp_hot.c b/pp_hot.c
index 05b9b1680b..0f781258d6 100644
--- a/pp_hot.c
+++ b/pp_hot.c
@@ -1005,6 +1005,8 @@ PP(pp_aassign)
}
TAINT_NOT;
}
+ if (PL_delaymagic & DM_ARRAY)
+ SvSETMAGIC((SV*)ary);
break;
case SVt_PVHV: { /* normal hash */
SV *tmpstr;
@@ -1122,9 +1124,6 @@ PP(pp_aassign)
PL_egid = PerlProc_getegid();
}
PL_tainting |= (PL_uid && (PL_euid != PL_uid || PL_egid != PL_gid));
-
- if (PL_delaymagic & DM_ARRAY && SvMAGICAL((SV*)ary))
- mg_set((SV*)ary);
}
PL_delaymagic = 0;