From a837d99ee607f796237edfcf02ebcb616e3eaafe Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Wed, 17 Mar 2010 19:28:01 -0400 Subject: [PATCH] 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 --- girnode.h | 2 +- gtypelib.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/girnode.h b/girnode.h index c1b2369cf..427f8e908 100644 --- a/girnode.h +++ b/girnode.h @@ -263,7 +263,7 @@ struct _GIrNodeValue gboolean deprecated; - guint32 value; + gint32 value; }; struct _GIrNodeConstant diff --git a/gtypelib.h b/gtypelib.h index 26486afc5..f02dcfc2e 100644 --- a/gtypelib.h +++ b/gtypelib.h @@ -614,7 +614,7 @@ typedef struct { guint32 deprecated : 1; guint32 reserved :31; guint32 name; - guint32 value; + gint32 value; } ValueBlob; /**