[gtk+] inspector: increase type by right amount



commit d123ea579f6c27b2155f1979e7c0a2da84a2423a
Author: Benjamin Otte <otte redhat com>
Date:   Mon Oct 13 06:09:35 2014 +0200

    inspector: increase type by right amount
    
    It's a shift, so we better shift it!

 gtk/inspector/statistics.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/inspector/statistics.c b/gtk/inspector/statistics.c
index 1950301..f41567b 100644
--- a/gtk/inspector/statistics.c
+++ b/gtk/inspector/statistics.c
@@ -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)


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