summaryrefslogtreecommitdiff
path: root/mg.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2009-01-21 12:12:12 +0000
committerNicholas Clark <nick@ccl4.org>2009-01-21 17:09:11 +0000
commit6673a63c63e2a65dbfcc835d6499cc97c449c67b (patch)
treeec84eaad20d1a2dae1ca297ecf1d19de05feff1f /mg.c
parent2b393bf410d9f1bf0b80132c4e8b5d6707a139f8 (diff)
downloadperl-6673a63c63e2a65dbfcc835d6499cc97c449c67b.tar.gz
Update the documentation of get_hv() to note that it calls Perl_gv_fetchpv(),
and hence the 'create' argument is actually 'flags'. Fix code and documentation that used TRUE or FALSE to use 0 or GV_ADD.
Diffstat (limited to 'mg.c')
-rw-r--r--mg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mg.c b/mg.c
index 7acff5190f..c94f50eb8e 100644
--- a/mg.c
+++ b/mg.c
@@ -904,7 +904,7 @@ Perl_magic_get(pTHX_ SV *sv, MAGIC *mg)
else if (PL_compiling.cop_warnings == pWARN_ALL) {
/* Get the bit mask for $warnings::Bits{all}, because
* it could have been extended by warnings::register */
- HV * const bits=get_hv("warnings::Bits", FALSE);
+ HV * const bits=get_hv("warnings::Bits", 0);
if (bits) {
SV ** const bits_all = hv_fetchs(bits, "all", FALSE);
if (bits_all)