summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--av.c2
-rw-r--r--hv.c4
-rw-r--r--mg.c2
-rw-r--r--sv.c2
4 files changed, 5 insertions, 5 deletions
diff --git a/av.c b/av.c
index 5d59642178..4d73e40946 100644
--- a/av.c
+++ b/av.c
@@ -823,7 +823,7 @@ Perl_av_exists(pTHX_ AV *av, I32 key)
mg = mg_find(sv, PERL_MAGIC_tiedelem);
if (mg) {
magic_existspack(sv, mg);
- return SvTRUE(sv);
+ return (bool)SvTRUE(sv);
}
}
}
diff --git a/hv.c b/hv.c
index 22b8cf26d5..919a5d5479 100644
--- a/hv.c
+++ b/hv.c
@@ -1158,7 +1158,7 @@ Perl_hv_exists(pTHX_ HV *hv, const char *key, I32 klen)
sv = sv_newmortal();
mg_copy((SV*)hv, sv, key, klen);
magic_existspack(sv, mg_find(sv, PERL_MAGIC_tiedelem));
- return SvTRUE(sv);
+ return (bool)SvTRUE(sv);
}
#ifdef ENV_IS_CASELESS
else if (mg_find((SV*)hv, PERL_MAGIC_env)) {
@@ -1262,7 +1262,7 @@ Perl_hv_exists_ent(pTHX_ HV *hv, SV *keysv, U32 hash)
keysv = sv_2mortal(newSVsv(keysv));
mg_copy((SV*)hv, sv, (char*)keysv, HEf_SVKEY);
magic_existspack(svret, mg_find(sv, PERL_MAGIC_tiedelem));
- return SvTRUE(svret);
+ return (bool)SvTRUE(svret);
}
#ifdef ENV_IS_CASELESS
else if (mg_find((SV*)hv, PERL_MAGIC_env)) {
diff --git a/mg.c b/mg.c
index 80e9a54bf6..f4843db403 100644
--- a/mg.c
+++ b/mg.c
@@ -1959,7 +1959,7 @@ Perl_magic_set(pTHX_ SV *sv, MAGIC *mg)
}
}
else if (strEQ(mg->mg_ptr+1, "IDE_SYSTEM_CALLS"))
- PL_widesyscalls = SvTRUE(sv);
+ PL_widesyscalls = (bool)SvTRUE(sv);
break;
case '.':
if (PL_localizing) {
diff --git a/sv.c b/sv.c
index 5da249fb1a..f3940d92f6 100644
--- a/sv.c
+++ b/sv.c
@@ -3318,7 +3318,7 @@ Perl_sv_2bool(pTHX_ register SV *sv)
SV* tmpsv;
if (SvAMAGIC(sv) && (tmpsv=AMG_CALLun(sv,bool_)) &&
(!SvROK(tmpsv) || (SvRV(tmpsv) != SvRV(sv))))
- return SvTRUE(tmpsv);
+ return (bool)SvTRUE(tmpsv);
return SvRV(sv) != 0;
}
if (SvPOKp(sv)) {