diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2013-03-19 16:28:05 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2013-03-19 16:28:05 +0000 |
commit | b1082c09e75ed6a4f2d7f95eec055f23018da4ee (patch) | |
tree | f52564aa5cd7c5e0b64b8d61c00fb9bcba9c3bf0 | |
parent | 2ad0d239152b3c0b5f9c309a6157671b7f62df25 (diff) | |
download | netsurf-b1082c09e75ed6a4f2d7f95eec055f23018da4ee.tar.gz netsurf-b1082c09e75ed6a4f2d7f95eec055f23018da4ee.tar.bz2 |
Fix warnings.
-rw-r--r-- | desktop/textarea.c | 6 |
1 files 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 { |