[gobject-introspection] gdump: Fix print-format error while GFlagsValue->value is an unsigned int
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] gdump: Fix print-format error while GFlagsValue->value is an unsigned int
- Date: Wed, 4 Jul 2018 14:57:19 +0000 (UTC)
commit 536491829fd5bd6022d264cb7a3b514a7f98e089
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Wed Jul 4 16:54:31 2018 +0200
gdump: Fix print-format error while GFlagsValue->value is an unsigned int
girepository/gdump.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/girepository/gdump.c b/girepository/gdump.c
index 6aa8bfd1..0e8c6035 100644
--- a/girepository/gdump.c
+++ b/girepository/gdump.c
@@ -311,7 +311,7 @@ dump_flags_type (GType type, const char *symbol, GOutputStream *out)
{
GFlagsValue *value = &(klass->values[i]);
- escaped_printf (out, " <member name=\"%s\" nick=\"%s\" value=\"%d\"/>\n",
+ escaped_printf (out, " <member name=\"%s\" nick=\"%s\" value=\"%u\"/>\n",
value->value_name, value->value_nick, value->value);
}
goutput_write (out, " </flags>\n");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]