summaryrefslogtreecommitdiff
path: root/libusb/libusbi.h
diff options
context:
space:
mode:
Diffstat (limited to 'libusb/libusbi.h')
-rw-r--r--libusb/libusbi.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libusb/libusbi.h b/libusb/libusbi.h
index 6d2e661..2355535 100644
--- a/libusb/libusbi.h
+++ b/libusb/libusbi.h
@@ -54,7 +54,7 @@ struct list_head {
* member - the list_head element in "type"
*/
#define list_entry(ptr, type, member) \
- ((type *)((char *)(ptr) - (unsigned long)(&((type *)0L)->member)))
+ ((type *)((uintptr_t)(ptr) - (uintptr_t)(&((type *)0L)->member)))
/* Get each entry from a list
* pos - A structure pointer has a "member" element