From: Tony Cook Date: Thu, 20 Jan 2011 22:51:37 +0000 (+1100) Subject: provide an explicit cast to the enum parameter for C++ X-Git-Tag: accepted/trunk/20130322.191538~5944 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dabded94d9487ef15c93113dcf570c71e159f350;p=platform%2Fupstream%2Fperl.git provide an explicit cast to the enum parameter for C++ --- diff --git a/op.c b/op.c index b0a04dd..bb1d9a8 100644 --- a/op.c +++ b/op.c @@ -3792,7 +3792,7 @@ Perl_newPMOP(pTHX_ I32 type, I32 flags) PL_compiling.cop_hints_hash, STR_WITH_LEN("reflags_charset"), 0, 0 ); if (reflags && SvOK(reflags)) { - set_regex_charset(&(pmop->op_pmflags), SvIV(reflags)); + set_regex_charset(&(pmop->op_pmflags), (regex_charset)SvIV(reflags)); } }