From: Vincent Pit Date: Thu, 12 Feb 2009 20:51:56 +0000 (+0100) Subject: Consting fix X-Git-Tag: v0.12~19 X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=b05dde8ad28018fc4ab5150de0dad0eb823d8968;p=perl%2Fmodules%2Findirect.git Consting fix --- diff --git a/indirect.xs b/indirect.xs index 7dacc74..3ddbfb6 100644 --- a/indirect.xs +++ b/indirect.xs @@ -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);