Evas linebreak: Fix wordbreak bug when there are chars < 0x0A.

The binary search used unsigned indexes which didn't work well in
that scenario (would have gotten to -1).

SVN revision: 66137
This commit is contained in:
Tom Hacohen 2011-12-13 07:32:56 +00:00
parent 7974ea4cbf
commit e34b9dd93c
1 changed files with 3 additions and 3 deletions

View File

@ -76,9 +76,9 @@ static enum WordBreakClass get_char_wb_class(
struct WordBreakProperties *wbp,
size_t len)
{
size_t min = 0;
size_t max = len - 1;
size_t mid;
int min = 0;
int max = len - 1;
int mid;
do
{