summaryrefslogtreecommitdiff
path: root/mathoms.c
diff options
context:
space:
mode:
authorDagfinn Ilmari Mannsåker <ilmari@ilmari.org>2017-01-18 12:37:26 +0000
committerDagfinn Ilmari Mannsåker <ilmari@ilmari.org>2017-01-25 18:02:20 +0000
commit8298454cd9bef3c23473ec307d99840429f2df55 (patch)
tree6bc92e4ddac34acfd1b3732f2158a0cf87bbafe0 /mathoms.c
parent32207c637b216a1dfa7317d111af89f149743ff3 (diff)
downloadperl-8298454cd9bef3c23473ec307d99840429f2df55.tar.gz
Use cBOOL() instead of ? TRUE : FALSE
Except under cpan/ and dist/
Diffstat (limited to 'mathoms.c')
-rw-r--r--mathoms.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/mathoms.c b/mathoms.c
index 92cd77a3c7..66f2cc3768 100644
--- a/mathoms.c
+++ b/mathoms.c
@@ -865,8 +865,7 @@ Perl_hv_exists_ent(pTHX_ HV *hv, SV *keysv, U32 hash)
{
PERL_ARGS_ASSERT_HV_EXISTS_ENT;
- return hv_common(hv, keysv, NULL, 0, 0, HV_FETCH_ISEXISTS, 0, hash)
- ? TRUE : FALSE;
+ return cBOOL(hv_common(hv, keysv, NULL, 0, 0, HV_FETCH_ISEXISTS, 0, hash));
}
HE *
@@ -927,8 +926,7 @@ Perl_hv_exists(pTHX_ HV *hv, const char *key, I32 klen_i32)
klen = klen_i32;
flags = 0;
}
- return hv_common(hv, NULL, key, klen, flags, HV_FETCH_ISEXISTS, 0, 0)
- ? TRUE : FALSE;
+ return cBOOL(hv_common(hv, NULL, key, klen, flags, HV_FETCH_ISEXISTS, 0, 0));
}
SV**