for (i = 0; i < icount; i++) {
ELT_TYPE idx = ib[i];
- if (idx >= min_index && idx <= max_index) {
+ if (idx < min_index || idx > max_index) {
debug_printf("warning: index out of range\n");
}
}
for (i = 0; i < icount; i++) {
ELT_TYPE idx = ib[i];
- if (idx >= min_index && idx <= max_index) {
+ if (idx < min_index || idx > max_index) {
debug_printf("warning: index out of range\n");
}
vsplit->draw_elts[i] = (ushort) idx;
for (i = 0; i < icount; i++) {
ELT_TYPE idx = ib[i];
- if (idx >= min_index && idx <= max_index) {
+ if (idx < min_index || idx > max_index) {
debug_printf("warning: index out of range\n");
}
vsplit->draw_elts[i] = (ushort) (idx - min_index);