2680 |
unsigned int origd = d; |
unsigned int origd = d; |
2681 |
while (get_othercase_range(&cc, origd, &occ, &ocd)) |
while (get_othercase_range(&cc, origd, &occ, &ocd)) |
2682 |
{ |
{ |
2683 |
if (occ >= c && ocd <= d) continue; /* Skip embedded ranges */ |
if (occ >= (unsigned int)c && |
2684 |
|
ocd <= (unsigned int)d) |
2685 |
|
continue; /* Skip embedded ranges */ |
2686 |
|
|
2687 |
if (occ < c && ocd >= c - 1) /* Extend the basic range */ |
if (occ < (unsigned int)c && |
2688 |
|
ocd >= (unsigned int)c - 1) /* Extend the basic range */ |
2689 |
{ /* if there is overlap, */ |
{ /* if there is overlap, */ |
2690 |
c = occ; /* noting that if occ < c */ |
c = occ; /* noting that if occ < c */ |
2691 |
continue; /* we can't have ocd > d */ |
continue; /* we can't have ocd > d */ |
2692 |
} /* because a subrange is */ |
} /* because a subrange is */ |
2693 |
if (ocd > d && occ <= d + 1) /* always shorter than */ |
if (ocd > (unsigned int)d && |
2694 |
|
occ <= (unsigned int)d + 1) /* always shorter than */ |
2695 |
{ /* the basic range. */ |
{ /* the basic range. */ |
2696 |
d = ocd; |
d = ocd; |
2697 |
continue; |
continue; |