diff options
author | Nicholas Clark <nick@ccl4.org> | 2010-05-21 20:32:28 +0100 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2010-05-21 20:32:28 +0100 |
commit | 4fa7c2bfe0a54ceffcc7c56cdc072eaeaf54cad9 (patch) | |
tree | bbe2ab90c77b0ae537b4b20003bfd5ad4820d501 /perlio.c | |
parent | fcd24582e9751804a977b6d4ef227de5a3b0343b (diff) | |
download | perl-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.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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); } |