summaryrefslogtreecommitdiff
path: root/giscanner/scannerparser.y
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2012-11-06 11:48:36 -0500
committerColin Walters <walters@verbum.org>2012-11-07 06:39:44 -0500
commitdb71321a5b23715ac047058e56c1fcb6a5985376 (patch)
tree52b53fcc7dde47baec30b8371f14aad0c586a1ae /giscanner/scannerparser.y
parentf6a2c730c68661cf08c52fe2d0863cacfde98971 (diff)
downloadgobject-introspection-db71321a5b23715ac047058e56c1fcb6a5985376.tar.gz
scanner: Emit correct type for unsigned integer constants
Otherwise bindings will break. https://bugzilla.gnome.org/show_bug.cgi?id=685022
Diffstat (limited to 'giscanner/scannerparser.y')
-rw-r--r--giscanner/scannerparser.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/giscanner/scannerparser.y b/giscanner/scannerparser.y
index 82ee1d7c..773e9612 100644
--- a/giscanner/scannerparser.y
+++ b/giscanner/scannerparser.y
@@ -386,7 +386,7 @@ unary_expression
{
$$ = $3;
if ($$->const_int_set) {
- $$->base_type = gi_source_basic_type_new ("gint64");
+ $$->base_type = gi_source_basic_type_new ($$->const_int_is_unsigned ? "guint64" : "gint64");
}
}
| INTUL_CONST '(' unary_expression ')'