From c74f7496486ac9436c40cd0dc43b85c0c31b3629 Mon Sep 17 00:00:00 2001 From: Kai Tietz Date: Wed, 25 Aug 2010 15:14:24 +0200 Subject: [PATCH] include: Fixed LIST_ENTRY macro type casts for win64. --- include/wine/list.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/wine/list.h b/include/wine/list.h index da3ce913c0..9712603512 100644 --- a/include/wine/list.h +++ b/include/wine/list.h @@ -227,6 +227,6 @@ static inline void list_move_head( struct list *dst, struct list *src ) /* get pointer to object containing list element */ #undef LIST_ENTRY #define LIST_ENTRY(elem, type, field) \ - ((type *)((char *)(elem) - (unsigned long)(&((type *)0)->field))) + ((type *)((char *)(elem) - (size_t)(&((type *)0)->field))) #endif /* __WINE_SERVER_LIST_H */