inspector: increase type by right amount
It's a shift, so we better shift it!
This commit is contained in:
@ -103,7 +103,7 @@ update_type_counts (GtkInspectorStatistics *sl)
|
|||||||
GType type;
|
GType type;
|
||||||
gpointer class;
|
gpointer class;
|
||||||
|
|
||||||
for (type = G_TYPE_INTERFACE; type <= G_TYPE_FUNDAMENTAL_MAX; type += G_TYPE_FUNDAMENTAL_SHIFT)
|
for (type = G_TYPE_INTERFACE; type <= G_TYPE_FUNDAMENTAL_MAX; type += (1 << G_TYPE_FUNDAMENTAL_SHIFT))
|
||||||
{
|
{
|
||||||
class = g_type_class_peek (type);
|
class = g_type_class_peek (type);
|
||||||
if (class == NULL)
|
if (class == NULL)
|
||||||
|
|||||||
Reference in New Issue
Block a user