]> git.vpit.fr Git - perl/modules/indirect.git/blobdiff - indirect.xs
Consting fix
[perl/modules/indirect.git] / indirect.xs
index 65b4a50b900e23d8ab36b63d68dcc841d8a913e3..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);
@@ -210,7 +210,7 @@ STATIC OP *indirect_ck_rv2sv(pTHX_ OP *o) {
   SV *sv;
   const char *name = NULL, *s;
   STRLEN len;
-  OPCODE type = op->op_type;
+  OPCODE type = (OPCODE) op->op_type;
 
   switch (type) {
    case OP_GV: