[sysprof] callgraph: Use U64_TO_POINTER



commit 329743c917b07a4a17cb83f9f8c1811e8e8b23d6
Author: Jussi Kukkonen <jussi kukkonen intel com>
Date:   Fri Jun 10 14:01:54 2016 +0300

    callgraph: Use U64_TO_POINTER
    
    This fixes a "cast to pointer from integer of different size" on i586.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=767693

 lib/sp-callgraph-view.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/lib/sp-callgraph-view.c b/lib/sp-callgraph-view.c
index fc41230..b033e45 100644
--- a/lib/sp-callgraph-view.c
+++ b/lib/sp-callgraph-view.c
@@ -135,7 +135,7 @@ build_functions_store (StackNode *node,
 
   gtk_list_store_append (state->store, &iter);
   gtk_list_store_set (state->store, &iter,
-                      COLUMN_NAME, (const gchar *)node->data,
+                      COLUMN_NAME, U64_TO_POINTER(node->data),
                       COLUMN_SELF, 100.0 * size / state->profile_size,
                       COLUMN_TOTAL, 100.0 * total / state->profile_size,
                       COLUMN_POINTER, node,


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