From b1082c09e75ed6a4f2d7f95eec055f23018da4ee Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Tue, 19 Mar 2013 16:28:05 +0000 Subject: Fix warnings. --- desktop/textarea.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/desktop/textarea.c b/desktop/textarea.c index b0efd66d0..6fb5927be 100644 --- a/desktop/textarea.c +++ b/desktop/textarea.c @@ -493,10 +493,10 @@ static bool textarea_select(struct textarea *ta, int b_start, int b_end, } else { /* Redraw to cover change in selection start or change in * selection end */ - int b_low, b_high; + unsigned int b_low, b_high; if (ta->sel_start != b_start) { /* Selection start changed */ - if (ta->sel_start < b_start) { + if ((signed)ta->sel_start < b_start) { b_low = ta->sel_start; b_high = b_start; } else { @@ -505,7 +505,7 @@ static bool textarea_select(struct textarea *ta, int b_start, int b_end, } } else { /* Selection end changed */ - if (ta->sel_end < b_end) { + if ((signed)ta->sel_end < b_end) { b_low = ta->sel_end; b_high = b_end; } else { -- cgit v1.2.3