warning fixes
[lttv.git] / trunk / lttv / lttv / modules / gui / resourceview / drawing.c
index 2959cac79fc7a580d4c2f288f7fd29b5dc2ad602..2d3b4a1b4521ef389ae6260418f9044929fbf52b 100644 (file)
@@ -482,7 +482,7 @@ static void set_last_start(gpointer key, gpointer value, gpointer user_data)
 {
   //ResourceInfo *process_info = (ResourceInfo*)key;
   HashedResourceData *hashed_process_data = (HashedResourceData*)value;
-  guint x = (guint)(gulong)user_data;
+  guint x = GPOINTER_TO_UINT(user_data);
 
   hashed_process_data->x.over = x;
   hashed_process_data->x.over_used = FALSE;
@@ -521,7 +521,7 @@ void drawing_data_request_begin(EventsRequest *events_request, LttvTracesetState
 
   for(i=0; i<RV_RESOURCE_COUNT; i++) {
     g_hash_table_foreach(cfd->process_list->restypes[i].hash_table, set_last_start,
-                         (gpointer)(gulong)x);
+                         GUINT_TO_POINTER(x));
   }
 
 }
This page took 0.023026 seconds and 4 git commands to generate.