FS-3766 --resolve

This commit is contained in:
Marc Olivier Chouinard
2011-12-16 07:35:05 -05:00
parent 4cd616cc1d
commit 442f4d2522
6 changed files with 13 additions and 12 deletions

View File

@@ -155,12 +155,12 @@ for (;;)
if (top <= bot) return -1;
mid = (bot + top) >> 1;
if (c == (ucp_table[mid].f0 & f0_charmask)) break;
if (c < (ucp_table[mid].f0 & f0_charmask)) top = mid;
if (c < (int)(ucp_table[mid].f0 & f0_charmask)) top = mid;
else
{
if ((ucp_table[mid].f0 & f0_rangeflag) != 0 &&
c <= (ucp_table[mid].f0 & f0_charmask) +
(ucp_table[mid].f1 & f1_rangemask)) break;
c <= (int)((ucp_table[mid].f0 & f0_charmask) +
(ucp_table[mid].f1 & f1_rangemask))) break;
bot = mid + 1;
}
}