[gobject-introspection] [giroffsets] Also update this code for change to signed enumeration values



commit a516ab15a96f944772dd7e7993b752f0daa65fc1
Author: Colin Walters <walters verbum org>
Date:   Thu Mar 18 17:46:56 2010 -0400

    [giroffsets] Also update this code for change to signed enumeration values

 girepository/giroffsets.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/girepository/giroffsets.c b/girepository/giroffsets.c
index ab9bde0..7a5e701 100644
--- a/girepository/giroffsets.c
+++ b/girepository/giroffsets.c
@@ -67,7 +67,7 @@ static void
 compute_enum_storage_type (GIrNodeEnum *enum_node)
 {
   GList *l;
-  guint32 max_value = 0;
+  gint32 max_value = 0;
   int width;
 
   if (enum_node->storage_type != GI_TYPE_TAG_VOID) /* already done */
@@ -77,7 +77,7 @@ compute_enum_storage_type (GIrNodeEnum *enum_node)
     {
       GIrNodeValue *value = l->data;
       if (value->value > max_value)
-	max_value = value->value;
+        max_value = value->value;
     }
 
   if (max_value < 128)



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