[glib] gobject: Cast token type to guint to avoid gcc warning
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] gobject: Cast token type to guint to avoid gcc warning
- Date: Thu, 2 Dec 2010 19:12:08 +0000 (UTC)
commit 67740263e9a3de840e527dd45ba3d6feff512839
Author: Benjamin Otte <otte redhat com>
Date: Thu Dec 2 20:09:59 2010 +0100
gobject: Cast token type to guint to avoid gcc warning
The usual fix for all things GScanner...
gobject/glib-genmarshal.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gobject/glib-genmarshal.c b/gobject/glib-genmarshal.c
index e382fdc..2f7ae86 100644
--- a/gobject/glib-genmarshal.c
+++ b/gobject/glib-genmarshal.c
@@ -690,7 +690,7 @@ main (int argc,
{
guint expected_token = G_TOKEN_NONE;
- switch (g_scanner_peek_next_token (scanner))
+ switch ((guint) g_scanner_peek_next_token (scanner))
{
case '\n':
/* eat newline and restart */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]