summaryrefslogtreecommitdiff
path: root/perlio.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2010-05-21 20:32:28 +0100
committerNicholas Clark <nick@ccl4.org>2010-05-21 20:32:28 +0100
commit4fa7c2bfe0a54ceffcc7c56cdc072eaeaf54cad9 (patch)
treebbe2ab90c77b0ae537b4b20003bfd5ad4820d501 /perlio.c
parentfcd24582e9751804a977b6d4ef227de5a3b0343b (diff)
downloadperl-4fa7c2bfe0a54ceffcc7c56cdc072eaeaf54cad9.tar.gz
PL_in_load_module only has values 0 and 1, so can be a bool instead of int.
Diffstat (limited to 'perlio.c')
-rw-r--r--perlio.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/perlio.c b/perlio.c
index d015b587e2..57a61d92f4 100644
--- a/perlio.c
+++ b/perlio.c
@@ -807,17 +807,16 @@ PerlIO_find_layer(pTHX_ const char *name, STRLEN len, int load)
SV * const layer = newSVpvn(name, len);
CV * const cv = get_cvs("PerlIO::Layer::NoWarnings", 0);
ENTER;
- SAVEINT(PL_in_load_module);
+ SAVEBOOL(PL_in_load_module);
if (cv) {
SAVEGENERICSV(PL_warnhook);
PL_warnhook = MUTABLE_SV((SvREFCNT_inc_simple_NN(cv)));
}
- PL_in_load_module++;
+ PL_in_load_module = TRUE;
/*
* The two SVs are magically freed by load_module
*/
Perl_load_module(aTHX_ 0, pkgsv, NULL, layer, NULL);
- PL_in_load_module--;
LEAVE;
return PerlIO_find_layer(aTHX_ name, len, 0);
}