Fix type cast warning
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 26 Sep 2011 17:19:01 +0000 (13:19 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 26 Sep 2011 17:19:01 +0000 (13:19 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
converter/babeltrace-lib.c

index 80c373fee99d4975538dbab7c8eb05398b81639d..7d61e092968e221ebd4c2b887334fcc575d97afd 100644 (file)
@@ -188,7 +188,7 @@ int babeltrace_iter_add_callback(struct babeltrace_iter *iter,
                                        printf("event not found\n");
                                        continue;
                                }
-                               event_id = (uint64_t)*event_id_ptr;
+                               event_id = (uint64_t)(unsigned long)*event_id_ptr;
 
                                /* find or create the bt_callback_chain for this event */
                                if (bt_stream_cb->per_id_callbacks->len >= event_id) {
This page took 0.024854 seconds and 4 git commands to generate.