[gimp] app: warning fix (MR !607).



commit ed2d1244dab317b553fb2b3eefffd99e15cce056
Author: GokhanKabar <gokhankabar hotmail fr>
Date:   Wed Mar 30 18:05:25 2022 +0000

    app: warning fix (MR !607).
    
    This fixes the following warnings:
    
    ```
    [2153/2321] Compiling C object app/widgets/libappwidgets.a.p/gimppanedbox.c.o
    ../app/widgets/gimppanedbox.c: In function ‘gimp_paned_box_dispose’:
    ../app/widgets/gimppanedbox.c:171:17: warning: comparison of integer expressions of different signedness: 
‘gint’ {aka ‘int’} and ‘long unsigned int’ [-Wsign-compare]
      171 |   for (i = 0; i < G_N_ELEMENTS (paned_box->p->dnd_highlights); i++)
          |                 ^
    ../app/widgets/gimppanedbox.c: In function ‘gimp_paned_box_drop_indicator_draw’:
    ../app/widgets/gimppanedbox.c:370:17: warning: comparison of integer expressions of different signedness: 
‘gint’ {aka ‘int’} and ‘long unsigned int’ [-Wsign-compare]
      370 |   for (i = 0; i < G_N_ELEMENTS (paned_box->p->dnd_highlights); i++)
          |                 ^
    ```

 app/widgets/gimppanedbox.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/app/widgets/gimppanedbox.c b/app/widgets/gimppanedbox.c
index 078bee76b7..d76368b93d 100644
--- a/app/widgets/gimppanedbox.c
+++ b/app/widgets/gimppanedbox.c
@@ -166,7 +166,7 @@ static void
 gimp_paned_box_dispose (GObject *object)
 {
   GimpPanedBox *paned_box = GIMP_PANED_BOX (object);
-  gint          i;
+  gsize         i;
 
   for (i = 0; i < G_N_ELEMENTS (paned_box->p->dnd_highlights); i++)
     gimp_paned_box_hide_drop_indicator (paned_box, i);
@@ -363,7 +363,7 @@ gimp_paned_box_drop_indicator_draw (GtkWidget *widget,
 {
   GimpPanedBox *paned_box = GIMP_PANED_BOX (widget);
   GimpRGB       color;
-  gint          i;
+  gsize         i;
 
   gimp_rgb_parse_hex (&color, DROP_HIGHLIGHT_COLOR, -1);
 


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