gstdirectcontrolbinding: Fix integer comparison
authorJordan Petridis <jpetridis@gnome.org>
Fri, 4 Oct 2019 17:01:46 +0000 (20:01 +0300)
committerJordan Petridis <jpetridis@gnome.org>
Fri, 4 Oct 2019 17:06:49 +0000 (20:06 +0300)
i is declared as gint but then compared against `n_values` guint
in the for loop below.

libs/gst/controller/gstdirectcontrolbinding.c

index bcc872e5006e9c18bd2e19285c913becf06cd356..860408e1981336f115dc9d47d881f4110bf345bc 100644 (file)
@@ -427,7 +427,7 @@ gst_direct_control_binding_get_value_array (GstControlBinding * _self,
     gpointer values_)
 {
   GstDirectControlBinding *self = GST_DIRECT_CONTROL_BINDING (_self);
-  gint i;
+  guint i;
   gdouble *src_val;
   gboolean res = FALSE;
   GstDirectControlBindingConvertValue convert;
@@ -470,7 +470,7 @@ gst_direct_control_binding_get_g_value_array (GstControlBinding * _self,
     GValue * values)
 {
   GstDirectControlBinding *self = GST_DIRECT_CONTROL_BINDING (_self);
-  gint i;
+  guint i;
   gdouble *src_val;
   gboolean res = FALSE;
   GType type;