X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=indirect.xs;h=c8ca38f3b548fd0c881bcf56289b2dde4aecf92b;hb=443a0a4c9ac49515e3046f161d909ad4eb4aadfb;hp=65b4a50b900e23d8ab36b63d68dcc841d8a913e3;hpb=85a4490d77f884d65a2dbf35d130d735811cc4bf;p=perl%2Fmodules%2Findirect.git diff --git a/indirect.xs b/indirect.xs index 65b4a50..c8ca38f 100644 --- a/indirect.xs +++ b/indirect.xs @@ -140,13 +140,13 @@ STATIC void indirect_map_delete(pTHX_ const OP *o) { #define indirect_map_delete(O) indirect_map_delete(aTHX_ (O)) OP2STR_BUF; - hv_delete(indirect_map, buf, OP2STR(o), G_DISCARD); + (void)hv_delete(indirect_map, buf, OP2STR(o), G_DISCARD); } 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: @@ -333,7 +333,7 @@ STATIC OP *indirect_ck_entersub(pTHX_ OP *o) { oo = o; do { op = (LISTOP *) oo; - if (!op->op_flags & OPf_KIDS) + if (!(op->op_flags & OPf_KIDS)) goto done; oo = op->op_first; } while (oo->op_type != OP_PUSHMARK);