gobject-introspection r476 - trunk/girepository



Author: walters
Date: Sat Aug 23 21:30:06 2008
New Revision: 476
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=476&view=rev

Log:
Add debug bit, tweak to use GUINT as correct.


Modified:
   trunk/girepository/girnode.c

Modified: trunk/girepository/girnode.c
==============================================================================
--- trunk/girepository/girnode.c	(original)
+++ trunk/girepository/girnode.c	Sat Aug 23 21:30:06 2008
@@ -1011,6 +1011,8 @@
 
       result = node;
 
+      g_debug ("Creating XREF: %s %s", names[0], names[1]);
+
       goto out;
     }
 
@@ -1204,13 +1206,13 @@
 	    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)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]