[gnome-builder] completion: force signed integer math
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] completion: force signed integer math
- Date: Thu, 14 Jun 2018 20:21:19 +0000 (UTC)
commit ecef2cab190add569cd053452660d45c0eb8162f
Author: Christian Hergert <chergert redhat com>
Date: Thu Jun 14 13:20:27 2018 -0700
completion: force signed integer math
src/libide/completion/ide-completion-list-box.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/libide/completion/ide-completion-list-box.c b/src/libide/completion/ide-completion-list-box.c
index 133b95748..aa2e379ec 100644
--- a/src/libide/completion/ide-completion-list-box.c
+++ b/src/libide/completion/ide-completion-list-box.c
@@ -863,7 +863,7 @@ ide_completion_list_box_move_cursor (IdeCompletionListBox *self,
if (step == GTK_MOVEMENT_PAGES)
direction *= self->n_rows;
- if ((self->selected + direction) > n_items)
+ if (((gint)self->selected + direction) > n_items)
self->selected = n_items - 1;
else if (((gint)self->selected + direction) < 0)
self->selected = 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]