Seems pointless to check the exit condition before any iterations, when we
know that it will always be false the first time.
S_hsplit(pTHX_ HV *hv, STRLEN const oldsize, STRLEN newsize)
{
dVAR;
- STRLEN i;
+ STRLEN i = 0;
char *a = (char*) HvARRAY(hv);
HE **aep;
return;
aep = (HE**)a;
- for (i=0; i<oldsize; i++) {
+ do {
HE **oentry = aep + i;
HE *entry = aep[i];
}
entry = *oentry;
} while (entry);
- }
+ } while (i++ < oldsize);
}
void