Enumerations can be negative
authorColin Walters <walters@verbum.org>
Wed, 17 Mar 2010 23:28:01 +0000 (19:28 -0400)
committerColin Walters <walters@verbum.org>
Thu, 18 Mar 2010 13:50:33 +0000 (09:50 -0400)
Change the internal type for ValueBlob to gint32, since it's perfectly
valid for enumerations to have negative values.

https://bugzilla.gnome.org/show_bug.cgi?id=613203

girepository/girnode.h
girepository/gtypelib.h

index c1b2369..427f8e9 100644 (file)
@@ -263,7 +263,7 @@ struct _GIrNodeValue
 
   gboolean deprecated;
 
-  guint32 value;
+  gint32 value;
 };
 
 struct _GIrNodeConstant
index 26486af..f02dcfc 100644 (file)
@@ -614,7 +614,7 @@ typedef struct {
   guint32 deprecated : 1;
   guint32 reserved   :31;
   guint32 name;
-  guint32 value;
+  gint32 value;
 } ValueBlob;
 
 /**