summaryrefslogtreecommitdiff
path: root/gobject/gtype.c
diff options
context:
space:
mode:
authorTim Janik <timj@gtk.org>2001-11-26 09:18:55 +0000
committerTim Janik <timj@src.gnome.org>2001-11-26 09:18:55 +0000
commit5c2f442088c65a67534e22a3ef7016bed7b7fd9b (patch)
tree317d854e86e08bfd863cc036d0db89f66f47bd69 /gobject/gtype.c
parenta8a91e438f47b1cc259ade4903a1aad91382b8b2 (diff)
typedef GType to gulong instead of gsize, if possible.
Mon Nov 26 09:55:12 2001 Tim Janik <timj@gtk.org> * gtype.h: typedef GType to gulong instead of gsize, if possible. * gtype.c: fixups for GType being sizeof(long) wide (changed UINT casts). * gsignal.c: * gclosure.c: * gparam.c: likewise.
Diffstat (limited to 'gobject/gtype.c')
-rw-r--r--gobject/gtype.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gobject/gtype.c b/gobject/gtype.c
index c912a7cc3..d2c9b2a29 100644
--- a/gobject/gtype.c
+++ b/gobject/gtype.c
@@ -355,7 +355,7 @@ type_node_any_new_W (TypeNode *pnode,
g_hash_table_insert (static_type_nodes_ht,
GUINT_TO_POINTER (node->qname),
- GUINT_TO_POINTER (type));
+ (gpointer) type);
return node;
}
@@ -1742,7 +1742,7 @@ g_type_register_fundamental (GType type_id,
if ((type_id & TYPE_ID_MASK) ||
type_id > G_TYPE_FUNDAMENTAL_MAX)
{
- g_warning ("attempt to register fundamental type `%s' with invalid type id (%u)",
+ g_warning ("attempt to register fundamental type `%s' with invalid type id (%lu)",
type_name,
type_id);
return 0;
@@ -2128,7 +2128,7 @@ g_type_from_name (const gchar *name)
if (quark)
{
G_READ_LOCK (&type_rw_lock);
- type = GPOINTER_TO_UINT (g_hash_table_lookup (static_type_nodes_ht, GUINT_TO_POINTER (quark)));
+ type = (GType) g_hash_table_lookup (static_type_nodes_ht, GUINT_TO_POINTER (quark));
G_READ_UNLOCK (&type_rw_lock);
}
@@ -2794,7 +2794,7 @@ g_type_value_table_peek (GType type)
return vtable;
if (!node)
- g_warning (G_STRLOC ": type id `%u' is invalid", type);
+ g_warning (G_STRLOC ": type id `%lu' is invalid", type);
if (!has_refed_data)
g_warning ("can't peek value table for type `%s' which is not currently referenced",
type_descriptive_name_I (type));