From: Nicholas Clark Date: Thu, 21 Feb 2013 16:22:23 +0000 (+0100) Subject: Refactor the loop logic in S_hsplit() and Perl_hv_ksplit() to converge. X-Git-Tag: v5.17.10~180^2~6^2~7 X-Git-Url: https://perl5.git.perl.org/perl5.git/commitdiff_plain/c23dc12bbfaaff3193b4bd54a44c37c5634a7f46 Refactor the loop logic in S_hsplit() and Perl_hv_ksplit() to converge. Making the code as similar as possible will make it simpler to merge the two. --- diff --git a/hv.c b/hv.c index 3ad9993..acb8d0a 100644 --- a/hv.c +++ b/hv.c @@ -1127,19 +1127,18 @@ S_hsplit(pTHX_ HV *hv) HvARRAY(hv) = (HE**) a; aep = (HE**)a; - for (i=0; i