]> git.vpit.fr Git - perl/modules/indirect.git/commitdiff
Consting fix
authorVincent Pit <vince@profvince.com>
Thu, 12 Feb 2009 20:51:56 +0000 (21:51 +0100)
committerVincent Pit <vince@profvince.com>
Thu, 12 Feb 2009 20:51:56 +0000 (21:51 +0100)
indirect.xs

index 7dacc7455367e0f514acebc28fb305d4bcd925ac..3ddbfb63224a6726f77ad6e6659ce13d57ef25c0 100644 (file)
@@ -146,7 +146,7 @@ STATIC void indirect_map_delete(pTHX_ const OP *o) {
 STATIC void indirect_map_clean_kids(pTHX_ const OP *o) {
 #define indirect_map_clean_kids(O) indirect_map_clean_kids(aTHX_ (O))
  if (o->op_flags & OPf_KIDS) {
-  const OP *kid = cUNOPo->op_first;
+  const OP *kid = ((const UNOP *) o)->op_first;
   for (; kid; kid = kid->op_sibling) {
    indirect_map_clean_kids(kid);
    indirect_map_delete(kid);