op_lvalue_flags(): silence compiler warning blead
authorDavid Mitchell <davem@iabyn.com>
Fri, 1 Jul 2016 10:22:51 +0000 (11:22 +0100)
committerDavid Mitchell <davem@iabyn.com>
Fri, 1 Jul 2016 10:22:51 +0000 (11:22 +0100)
op.c:3071:4: warning: enumeral and non-enumeral type in conditional
             expression [-Wextra]

op.c

index fccb5f6..46e76ac 100644 (file)
--- a/op.c
+++ b/op.c
@@ -3068,7 +3068,7 @@ Perl_op_lvalue_flags(pTHX_ OP *o, I32 type, U32 flags)
               in error messages.  */
            op_lvalue(OpSIBLING(cBINOPo->op_first),
                      S_potential_mod_type(type)
-                       ? OP_ENTERSUB
+                       ? (I32)OP_ENTERSUB
                        : o->op_type);
        }
        break;