summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2006-09-11 00:47:46 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2006-09-11 00:47:46 +0000
commit0f26a7397643a2b1a993d67cb2c2f80182b90397 (patch)
treec167e7f25a5f869749f9547e87812d8f814b0a9c
parent00155f279f2ea18758b55d01662138a45d4cabee (diff)
downloadnetsurf-0f26a7397643a2b1a993d67cb2c2f80182b90397.tar.gz
netsurf-0f26a7397643a2b1a993d67cb2c2f80182b90397.tar.bz2
Squash warning
svn path=/trunk/netsurf/; revision=2951
-rw-r--r--desktop/selection.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/desktop/selection.c b/desktop/selection.c
index e416f1e3d..e47a9d91b 100644
--- a/desktop/selection.c
+++ b/desktop/selection.c
@@ -916,7 +916,8 @@ void selection_update(struct selection *s, size_t byte_offset,
if (change > 0)
s->end_idx += change;
else
- s->end_idx += max(change, byte_offset - s->end_idx);
+ s->end_idx +=
+ max(change, (int)(byte_offset - s->end_idx));
}
}