summaryrefslogtreecommitdiff
path: root/regcomp.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2016-07-05 19:17:18 -0600
committerKarl Williamson <khw@cpan.org>2016-07-16 13:30:30 -0600
commit243a3b9c6db780de9b2f8ab4bf33f0417a0b5e29 (patch)
tree792f516e9e68cf364ec76f5ce85d04467abbc964 /regcomp.h
parentd1bd48a0bf64e4969a36b6ebe7f93c0ceea5529b (diff)
downloadperl-243a3b9c6db780de9b2f8ab4bf33f0417a0b5e29.tar.gz
regcomp.h: Use #define mnemonic, not hard-coded number
Diffstat (limited to 'regcomp.h')
-rw-r--r--regcomp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/regcomp.h b/regcomp.h
index a8842a1bc7..79c28533b7 100644
--- a/regcomp.h
+++ b/regcomp.h
@@ -1054,7 +1054,7 @@ re.pm, especially to the documentation.
/* get_sv() can return NULL during global destruction. */
#define GET_RE_DEBUG_FLAGS DEBUG_r({ \
SV * re_debug_flags_sv = NULL; \
- re_debug_flags_sv = PL_curcop ? get_sv(RE_DEBUG_FLAGS, 1) : NULL; \
+ re_debug_flags_sv = PL_curcop ? get_sv(RE_DEBUG_FLAGS, GV_ADD) : NULL; \
if (re_debug_flags_sv) { \
if (!SvIOK(re_debug_flags_sv)) \
sv_setuv(re_debug_flags_sv, RE_DEBUG_COMPILE_DUMP | RE_DEBUG_EXECUTE_MASK ); \