[gtk/matthiasc/glshader-node] gsk: Use guint for array indices



commit e8d153760647a61d1484d931efa43db43303ae98
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Sep 28 13:57:54 2020 -0400

    gsk: Use guint for array indices
    
    Avoids some trivialities and static analyis complaints.

 gsk/gskrendernode.h     | 4 ++--
 gsk/gskrendernodeimpl.c | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gsk/gskrendernode.h b/gsk/gskrendernode.h
index a6583ba947..dd655d3b35 100644
--- a/gsk/gskrendernode.h
+++ b/gsk/gskrendernode.h
@@ -461,12 +461,12 @@ GskRenderNode *         gsk_gl_shader_node_new                  (GskGLShader
                                                                  const graphene_rect_t    *bounds,
                                                                  GBytes                   *args,
                                                                  GskRenderNode           **children,
-                                                                 int                       n_children);
+                                                                 guint                     n_children);
 GDK_AVAILABLE_IN_ALL
 guint                   gsk_gl_shader_node_get_n_children       (GskRenderNode            *node);
 GDK_AVAILABLE_IN_ALL
 GskRenderNode *         gsk_gl_shader_node_get_child            (GskRenderNode            *node,
-                                                                 int                       idx);
+                                                                 guint                     idx);
 GDK_AVAILABLE_IN_ALL
 GBytes *                gsk_gl_shader_node_get_args             (GskRenderNode            *node);
 GDK_AVAILABLE_IN_ALL
diff --git a/gsk/gskrendernodeimpl.c b/gsk/gskrendernodeimpl.c
index 3e95255267..16f9a1eaa0 100644
--- a/gsk/gskrendernodeimpl.c
+++ b/gsk/gskrendernodeimpl.c
@@ -4569,7 +4569,7 @@ gsk_gl_shader_node_new (GskGLShader           *shader,
                         const graphene_rect_t *bounds,
                         GBytes                *args,
                         GskRenderNode        **children,
-                        int                    n_children)
+                        guint                  n_children)
 {
   GskGLShaderNode *self;
   GskRenderNode *node;
@@ -4629,7 +4629,7 @@ gsk_gl_shader_node_get_n_children (GskRenderNode *node)
  */
 GskRenderNode *
 gsk_gl_shader_node_get_child (GskRenderNode *node,
-                              int            idx)
+                              guint          idx)
 {
   GskGLShaderNode *self = (GskGLShaderNode *) node;
 


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