[gobject-introspection] Enumerations can be negative



commit 6f6b2beb6918a83336dfdf94adde1d251dff84f3
Author: Colin Walters <walters verbum org>
Date:   Wed Mar 17 19:28:01 2010 -0400

    Enumerations can be negative
    
    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  |    2 +-
 girepository/gtypelib.h |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/girepository/girnode.h b/girepository/girnode.h
index c1b2369..427f8e9 100644
--- a/girepository/girnode.h
+++ b/girepository/girnode.h
@@ -263,7 +263,7 @@ struct _GIrNodeValue
 
   gboolean deprecated;
 
-  guint32 value;
+  gint32 value;
 };
 
 struct _GIrNodeConstant
diff --git a/girepository/gtypelib.h b/girepository/gtypelib.h
index 26486af..f02dcfc 100644
--- a/girepository/gtypelib.h
+++ b/girepository/gtypelib.h
@@ -614,7 +614,7 @@ typedef struct {
   guint32 deprecated : 1;
   guint32 reserved   :31;
   guint32 name;
-  guint32 value;
+  gint32 value;
 } ValueBlob;
 
 /**



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