summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2012-01-16 15:13:11 -0700
committerKarl Williamson <public@khwilliamson.com>2012-01-21 10:02:54 -0700
commit82ad65bb0613be64ca286f6db04d305b7f037509 (patch)
tree3eec07d7633e4638224663196ceae910a1d59450
parentf07538a5ede83b76aa73e872c7900cfb683089be (diff)
downloadperl-82ad65bb0613be64ca286f6db04d305b7f037509.tar.gz
op.c: Call macro instead of using explicit bit
The macro hides the bit name.
-rw-r--r--op.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/op.c b/op.c
index 2b7bc37c7d..becbf64e7f 100644
--- a/op.c
+++ b/op.c
@@ -2936,7 +2936,7 @@ S_fold_constants(pTHX_ register OP *o)
case OP_SCMP:
case OP_SPRINTF:
/* XXX what about the numeric ops? */
- if (PL_hints & HINT_LOCALE)
+ if (IN_LOCALE_COMPILETIME)
goto nope;
break;
}
@@ -4099,7 +4099,7 @@ Perl_newPMOP(pTHX_ I32 type, I32 flags)
if (PL_hints & HINT_RE_TAINT)
pmop->op_pmflags |= PMf_RETAINT;
- if (PL_hints & HINT_LOCALE) {
+ if (IN_LOCALE_COMPILETIME) {
set_regex_charset(&(pmop->op_pmflags), REGEX_LOCALE_CHARSET);
}
else if ((! (PL_hints & HINT_BYTES)) && (PL_hints & HINT_UNI_8_BIT)) {