Use glib portable macros to convert gpointer to int
[babeltrace.git] / formats / ctf / events.c
index d8e8d5dd1ffb1e38cbac6d90badec8f49e3fa2cb..0eb688a32c1c4966e6afaf0d19632038b9ed8fee 100644 (file)
@@ -690,7 +690,7 @@ int bt_ctf_get_event_decl_list(int handle_id, struct bt_context *ctx,
                goto error;
 
        handle = g_hash_table_lookup(ctx->trace_handles,
-                       (gpointer) (unsigned long) handle_id);
+                       GUINT_TO_POINTER(handle_id));
        if (!handle)
                goto error;
 
This page took 0.024804 seconds and 4 git commands to generate.