Kai Tietz : include: Fixed LIST_ENTRY macro type casts for win64.
Alexandre Julliard
julliard at winehq.org
Wed Aug 25 12:35:07 CDT 2010
Module: wine
Branch: master
Commit: c74f7496486ac9436c40cd0dc43b85c0c31b3629
URL: http://source.winehq.org/git/wine.git/?a=commit;h=c74f7496486ac9436c40cd0dc43b85c0c31b3629
Author: Kai Tietz <ktietz70 at googlemail.com>
Date: Wed Aug 25 15:14:24 2010 +0200
include: Fixed LIST_ENTRY macro type casts for win64.
---
include/wine/list.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/include/wine/list.h b/include/wine/list.h
index da3ce91..9712603 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 */
More information about the wine-cvs
mailing list