[gnome-builder] xml-pack: Fix gsize printf format
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] xml-pack: Fix gsize printf format
- Date: Wed, 19 Jul 2017 16:52:49 +0000 (UTC)
commit 017d5fc7419135550d0d1132fcfcdd210970419a
Author: Kalev Lember <klember redhat com>
Date: Wed Jul 19 18:29:29 2017 +0200
xml-pack: Fix gsize printf format
Otherwise the build will fail on i686:
ide-xml-symbol-node.c:626:33: error: format '%ld' expects argument of
type 'long int', but argument 6 has type 'gsize {aka unsigned int}'
[-Werror=format=]
ide-xml-symbol-node.c:626:61: error: format '%ld' expects argument of
type 'long int', but argument 11 has type 'gsize {aka unsigned int}'
[-Werror=format=]
plugins/xml-pack/ide-xml-symbol-node.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/xml-pack/ide-xml-symbol-node.c b/plugins/xml-pack/ide-xml-symbol-node.c
index e0c5809..8aaa988 100644
--- a/plugins/xml-pack/ide-xml-symbol-node.c
+++ b/plugins/xml-pack/ide-xml-symbol-node.c
@@ -623,7 +623,7 @@ is_in_range (NodeRange range,
static void
print_node_ranges (IdeXmlSymbolNode *node)
{
- printf ("(%i,%i)->(%i,%i) s:%ld end: (%i,%i)->(%i,%i) s:%ld\n",
+ printf ("(%i,%i)->(%i,%i) s:%"G_GSIZE_FORMAT" end: (%i,%i)->(%i,%i) s:%"G_GSIZE_FORMAT"\n",
node->start_tag.start_line,
node->start_tag.start_line_offset,
node->start_tag.end_line,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]