[gjs] function: Fix some baaad integer signedness issues



commit db487c71933e07e7bb2a7393b659d1516d72c362
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Sun Apr 7 16:41:42 2013 -0400

    function: Fix some baaad integer signedness issues
    
    As these variables indicate -1 for "non-existant", they can't be
    unsigned.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=697816

 gi/function.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/gi/function.c b/gi/function.c
index 67a815e..ff53eae 100644
--- a/gi/function.c
+++ b/gi/function.c
@@ -1393,7 +1393,8 @@ init_cached_function_data (JSContext      *context,
                            GType           gtype,
                            GICallableInfo *info)
 {
-    guint8 i, n_args, array_length_pos;
+    guint8 i, n_args;
+    int array_length_pos;
     GError *error = NULL;
     GITypeInfo return_type;
     GIInfoType info_type;
@@ -1442,8 +1443,8 @@ init_cached_function_data (JSContext      *context,
         GIDirection direction;
         GIArgInfo arg_info;
         GITypeInfo type_info;
-        guint8 destroy = -1;
-        guint8 closure = -1;
+        int destroy = -1;
+        int closure = -1;
         GITypeTag type_tag;
 
         if (function->param_types[i] == PARAM_SKIPPED)


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