include/wine/list.h : Cast pointer to char* instead of unsigned int.

Erik de Castro Lopo mle+win at mega-nerd.com
Wed Apr 23 18:03:11 CDT 2008


---
 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 b018a1f..5ccb138 100644
--- a/include/wine/list.h
+++ b/include/wine/list.h
@@ -225,6 +225,6 @@ static inline void list_move_head( struct list *dst, struct list *src )
 
 /* get pointer to object containing list element */
 #define LIST_ENTRY(elem, type, field) \
-    ((type *)((char *)(elem) - (unsigned int)(&((type *)0)->field)))
+    ((type *)((char *)(elem) - (char *)(&((type *)0)->field)))
 
 #endif  /* __WINE_SERVER_LIST_H */
-- 
1.5.4.3



-- 
-----------------------------------------------------------------
Erik de Castro Lopo
-----------------------------------------------------------------
"Linux is produced to be used, whereas the others are produced
to be sold"  -- Bobby D. Bryant



More information about the wine-patches mailing list