[gnome-builder] frame: keep operations strictly signed



commit 6896244c58667e92867f34c9fe45bbb6351eeca0
Author: Christian Hergert <chergert redhat com>
Date:   Thu Jan 27 13:49:37 2022 -0800

    frame: keep operations strictly signed

 src/libide/gui/ide-frame.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/libide/gui/ide-frame.c b/src/libide/gui/ide-frame.c
index 1f96d28c4..793269914 100644
--- a/src/libide/gui/ide-frame.c
+++ b/src/libide/gui/ide-frame.c
@@ -292,7 +292,7 @@ ide_frame_change_current_page (IdeFrame *self,
   if (ar->len == 0)
     g_return_if_reached ();
 
-  position = (position + ar->len - direction) % ar->len;
+  position = (position + (int)ar->len - direction) % (int)ar->len;
 
   visible_child = g_ptr_array_index (ar, position);
   gtk_stack_set_visible_child (priv->stack, visible_child);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]