From: tasn Date: Tue, 13 Dec 2011 07:32:56 +0000 (+0000) Subject: Evas linebreak: Fix wordbreak bug when there are chars < 0x0A. X-Git-Tag: submit/trunk/20120815.174732~662 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7c8c9a93cc5edfdcc56c379455bdcb87634b7d28;p=profile%2Fivi%2Fevas.git 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). git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@66137 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/static_deps/liblinebreak/wordbreak.c b/src/static_deps/liblinebreak/wordbreak.c index 13fd2c7..bbbb7f4 100644 --- a/src/static_deps/liblinebreak/wordbreak.c +++ b/src/static_deps/liblinebreak/wordbreak.c @@ -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 {