From a2678afc9cfe82d74fdcf48074b928eb6ae1a86c Mon Sep 17 00:00:00 2001
From: Colin Walters <walters@src.gnome.org>
Date: Sat, 23 Aug 2008 21:30:06 +0000
Subject: [PATCH] Add debug bit, tweak to use GUINT as correct.

svn path=/trunk/; revision=476
---
 girnode.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/girnode.c b/girnode.c
index b6522d82e..ce3e9ba00 100644
--- a/girnode.c
+++ b/girnode.c
@@ -1011,6 +1011,8 @@ find_entry_node (GIrModule   *module,
 
       result = node;
 
+      g_debug ("Creating XREF: %s %s", names[0], names[1]);
+
       goto out;
     }
 
@@ -1204,13 +1206,13 @@ g_ir_node_build_typelib (GIrNode    *node,
 	    value = g_hash_table_lookup (types, s);
 	    if (value)
 	      {
-		blob->offset = GPOINTER_TO_INT (value);
+		blob->offset = GPOINTER_TO_UINT (value);
 		g_free (s);
 	      }
 	    else
 	      {
 		unique_types_count += 1;
-		g_hash_table_insert (types, s, GINT_TO_POINTER(*offset2));
+		g_hash_table_insert (types, s, GUINT_TO_POINTER(*offset2));
 				     
 		blob->offset = *offset2;
 		switch (type->tag)