Use glib portable macros to convert gpointer to int
[babeltrace.git] / formats / ctf-text / ctf-text.c
index 69450cf5f13fe009745be245e6a4975f8401ea2a..f4cdf105d4f7938bf9ad3219b228e44998fe64cb 100644 (file)
@@ -136,7 +136,7 @@ struct ctf_callsite_dups *ctf_trace_callsite_lookup(struct ctf_trace *trace,
                        GQuark callsite_name)
 {
        return g_hash_table_lookup(trace->callsites,
-                       (gpointer) (unsigned long) callsite_name);
+                       GUINT_TO_POINTER(callsite_name));
 }
 
 void bt_ctf_text_hook(void)
This page took 0.022896 seconds and 4 git commands to generate.