summaryrefslogtreecommitdiff
path: root/op_reg_common.h
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2011-01-18 12:27:56 -0700
committerKarl Williamson <public@khwilliamson.com>2011-01-18 12:34:36 -0700
commitbfba585ac769bf0862ff2ce15499506aaa370ece (patch)
treec59aeb3e20cd923440c8e40459c94b786d0d737f /op_reg_common.h
parent8ced8222abf2622ec6f811948d37fbd29984c1fc (diff)
downloadperl-bfba585ac769bf0862ff2ce15499506aaa370ece.tar.gz
op_reg_common.h: add explicit cast
A version of the g++ compiler isn't allowing the implicit cast of U32 to an enum. Change to use an explicit cast.
Diffstat (limited to 'op_reg_common.h')
-rw-r--r--op_reg_common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/op_reg_common.h b/op_reg_common.h
index 7d78005410..f5096500a3 100644
--- a/op_reg_common.h
+++ b/op_reg_common.h
@@ -73,7 +73,7 @@ get_regex_charset(const U32 flags)
{
/* Returns the enum corresponding to the character set in 'flags' */
- return (flags & RXf_PMf_CHARSET) >> _RXf_PMf_CHARSET_SHIFT;
+ return (regex_charset) ((flags & RXf_PMf_CHARSET) >> _RXf_PMf_CHARSET_SHIFT);
}
/* Next available bit after the above. Name begins with '_' so won't be