From 7c8c9a93cc5edfdcc56c379455bdcb87634b7d28 Mon Sep 17 00:00:00 2001 From: tasn Date: Tue, 13 Dec 2011 07:32:56 +0000 Subject: [PATCH] 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 --- src/static_deps/liblinebreak/wordbreak.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 { -- 2.7.4