gtype: Fast-path for g_type_is_a

Do I really need to explain why ?

https://bugzilla.gnome.org/show_bug.cgi?id=732085
This commit is contained in:
Edward Hervey 2014-06-23 11:39:04 +02:00 committed by Edward Hervey
parent 4b5bdf6ceb
commit 3e2735f468

View File

@ -3499,6 +3499,9 @@ g_type_is_a (GType type,
{
TypeNode *node, *iface_node;
gboolean is_a;
if (type == iface_type)
return TRUE;
node = lookup_type_node_I (type);
iface_node = lookup_type_node_I (iface_type);