diff options
author | Dagfinn Ilmari Mannsåker <ilmari@ilmari.org> | 2017-01-18 12:37:26 +0000 |
---|---|---|
committer | Dagfinn Ilmari Mannsåker <ilmari@ilmari.org> | 2017-01-25 18:02:20 +0000 |
commit | 8298454cd9bef3c23473ec307d99840429f2df55 (patch) | |
tree | 6bc92e4ddac34acfd1b3732f2158a0cf87bbafe0 /mathoms.c | |
parent | 32207c637b216a1dfa7317d111af89f149743ff3 (diff) | |
download | perl-8298454cd9bef3c23473ec307d99840429f2df55.tar.gz |
Use cBOOL() instead of ? TRUE : FALSE
Except under cpan/ and dist/
Diffstat (limited to 'mathoms.c')
-rw-r--r-- | mathoms.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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** |