p4raw-id: //depot/perl@24476
else {
/* Required open method not present */
PerlIO_funcs *tab = NULL;
- const IV m = n - 1;
+ IV m = n - 1;
while (m >= 0) {
PerlIO_funcs *t =
PerlIO_layer_fetch(aTHX_ layers, m, NULL);
tab = t;
break;
}
- n--;
+ m--;
}
if (tab) {
if ((*tab->Open) (aTHX_ tab, layers, m, mode, fd, imode,