diff options
author | David Mitchell <davem@iabyn.com> | 2017-07-08 15:47:23 +0100 |
---|---|---|
committer | David Mitchell <davem@iabyn.com> | 2017-07-27 11:30:22 +0100 |
commit | f4c975aa030b7ad74a7efda242fb8b771ea41c14 (patch) | |
tree | 44c906576016c351aed4443e10c27898833fbb68 /pp_sys.c | |
parent | 775f2c0793edf33325b9ef09b476245658cfd66b (diff) | |
download | perl-f4c975aa030b7ad74a7efda242fb8b771ea41c14.tar.gz |
make callers of SvTRUE() more efficient
Where its obvious that the args can't be null, use SvTRUE_NN() instead.
Avoid possible multiple evaluations of the arg by assigning to a local var
first if necessary.
Diffstat (limited to 'pp_sys.c')
-rw-r--r-- | pp_sys.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -3293,7 +3293,7 @@ PP(pp_ftis) break; } SvSETMAGIC(TARG); - return SvTRUE_nomg(TARG) + return SvTRUE_nomg_NN(TARG) ? S_ft_return_true(aTHX_ TARG) : S_ft_return_false(aTHX_ TARG); } } |