summaryrefslogtreecommitdiff
path: root/pp_pack.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2017-03-09 10:55:38 -0700
committerKarl Williamson <khw@cpan.org>2017-11-06 12:50:05 -0700
commitf55ac4a45513e50ae06769ee748ea079c9577a7f (patch)
tree663fe20c1c662cf29b46b6689d8d8b69f3125029 /pp_pack.c
parentb59bf0b2884b21b6f3ce5eca607ab7a6096d87f5 (diff)
downloadperl-f55ac4a45513e50ae06769ee748ea079c9577a7f.tar.gz
Change some strncmp(), etc. to strBEGINs()
The latter is much clearer as to what's going on, and the programmer and program reader don't have to count characters.
Diffstat (limited to 'pp_pack.c')
-rw-r--r--pp_pack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pp_pack.c b/pp_pack.c
index 7a882bafef..f2d56b45f6 100644
--- a/pp_pack.c
+++ b/pp_pack.c
@@ -191,7 +191,7 @@ S_mul128(pTHX_ SV *sv, U8 m)
PERL_ARGS_ASSERT_MUL128;
- if (!strnEQ(s, "0000", 4)) { /* need to grow sv */
+ if (! strBEGINs(s, "0000")) { /* need to grow sv */
SV * const tmpNew = newSVpvs("0000000000");
sv_catsv(tmpNew, sv);