diff options
author | Father Chrysostomos <sprout@cpan.org> | 2013-06-28 00:09:02 -0700 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2013-06-28 00:09:02 -0700 |
commit | 38d27505c65e77f92cb8e231db1ac56a3dee8f57 (patch) | |
tree | 48f6f91b804668aed8701b4243f63150ab44b697 /op.c | |
parent | b17a067929304f6d2e8d21b1afec3c13df924d29 (diff) | |
download | perl-38d27505c65e77f92cb8e231db1ac56a3dee8f57.tar.gz |
op.c:cv_ckproto_len_flags: do null checks first
Checking local variables for nullness is faster than calling ckWARN_d,
which involves a function call.
Diffstat (limited to 'op.c')
-rw-r--r-- | op.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -6816,10 +6816,10 @@ Perl_cv_ckproto_len_flags(pTHX_ const CV *cv, const GV *gv, const char *p, PERL_ARGS_ASSERT_CV_CKPROTO_LEN_FLAGS; - if (!ckWARN_d(WARN_PROTOTYPE)) + if (p == NULL && cvp == NULL) return; - if (p == NULL && cvp == NULL) + if (!ckWARN_d(WARN_PROTOTYPE)) return; if (p && cvp) { |