[gnome-system-monitor] Fixed incorrect int to pointer conversion warning.



commit c1660319e400480e236d1120c4f833c8c3c96ff4
Author: Robert Roth <robert roth off gmail com>
Date:   Fri Aug 10 21:30:45 2012 +0300

    Fixed incorrect int to pointer conversion warning.

 src/interface.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/interface.cpp b/src/interface.cpp
index ea7f85a..d3154e8 100644
--- a/src/interface.cpp
+++ b/src/interface.cpp
@@ -498,7 +498,7 @@ create_main_window (ProcData *procdata)
     gtk_window_add_accel_group (GTK_WINDOW(app), accel_group);
     for (i = 0; i < 4; ++i) {
         goto_tab_closure[i] = g_cclosure_new_swap (G_CALLBACK (cb_proc_goto_tab),
-                                                   (gpointer) i, NULL);
+                                                   GINT_TO_POINTER (i), NULL);
         gtk_accel_group_connect (accel_group, '0'+(i+1),
                                  GDK_MOD1_MASK, GTK_ACCEL_VISIBLE,
                                  goto_tab_closure[i]);



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