inspector: increase type by right amount

It's a shift, so we better shift it!
This commit is contained in:
Benjamin Otte
2014-10-13 06:09:35 +02:00
parent 525676435d
commit d123ea579f

View File

@ -103,7 +103,7 @@ update_type_counts (GtkInspectorStatistics *sl)
GType type;
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);
if (class == NULL)