Port: use portable pointer type in bt_list_entry
[babeltrace.git] / include / babeltrace / list-internal.h
index ee5d84bd8dc55dcb55f93af31afc29f5f067b01b..48d9bbb9c1b75e6d7024dab59f7ea56179972d19 100644 (file)
@@ -120,7 +120,7 @@ bt_list_splice (struct bt_list_head *add, struct bt_list_head *head)
 
 /* Get typed element from list at a given position.  */
 #define bt_list_entry(ptr, type, member) \
-  ((type *) ((char *) (ptr) - (unsigned long) (&((type *) 0)->member)))
+  ((type *) ((char *) (ptr) - (uintptr_t) (&((type *) 0)->member)))
 
 
 
This page took 0.022602 seconds and 4 git commands to generate.