On Fri, Jul 12, 2024 at 12:42:57PM +0100, David Taylor wrote: > On Fri, 05 Jul 2024, David Gibson wrote: > > I may be missing something subtle, but is j intended to be used twice here, > rather than k? Indeed not, good catch, thanks. > > + > > +static void check_all_orders(void) > > +{ > > + int norders = sizeof(orders) / sizeof(orders[0]); > > + int i, j, k, l; > > + > > + for (i = 0; i < norders; i++) > > + for (j = 0; j < norders; j++) > > + for (k = 0; k < norders; k++) > > + for (l = 0; l < norders; l++) > > + check_one_order(orders[i], orders[j], > > + orders[j], orders[l]); > --------------------------------------------------------^^^^^^^^^ > > +} > -- David Gibson (he or they) | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you, not the other way | around. http://www.ozlabs.org/~dgibson