From 0f26a7397643a2b1a993d67cb2c2f80182b90397 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Mon, 11 Sep 2006 00:47:46 +0000 Subject: [PATCH] Squash warning svn path=/trunk/netsurf/; revision=2951 --- desktop/selection.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)); } }