]> git.vpit.fr Git - perl/modules/indirect.git/blobdiff - indirect.xs
Add a cast to make icc happy
[perl/modules/indirect.git] / indirect.xs
index c90f3b67e0d63d539aeeb2358c9bef232bc38c05..7dacc7455367e0f514acebc28fb305d4bcd925ac 100644 (file)
@@ -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:
@@ -222,9 +222,9 @@ STATIC OP *indirect_ck_rv2sv(pTHX_ OP *o) {
    }
    default:
     if ((PL_opargs[type] & OA_CLASS_MASK) == OA_SVOP) {
-     SV *sv = cSVOPx_sv(op);
-     if (SvPOK(sv) && (SvTYPE(sv) >= SVt_PV))
-      name = SvPV_const(sv, len);
+     SV *nsv = cSVOPx_sv(op);
+     if (SvPOK(nsv) && (SvTYPE(nsv) >= SVt_PV))
+      name = SvPV_const(nsv, len);
     }
   }
   if (!name)