On Fri, 2011-11-11 at 17:40 +0000, Anthony PERARD wrote: > > > if ((index < 0) && (index < PCI_ROM_SLOT)) > > > > um, which looks wrong. Should it be 'index > 0' ? > > Every other form is a bit confusing to me. I'd like to write > 0 < index < ROM_SLOT, so I know that index is between 0 and ROM_SLOT. > But, it's C and not math, so I wrote the closest way I can.
"0 < index < ROM_SLOT" ==> "0 < index && index < ROM_SLOT" but you have "index < 0 && ..." which is backwards. Ian.