Fix "warning: cast from pointer to integer of different size"

Dmitry Timoshkov dmitry at
Tue Apr 22 09:50:05 CDT 2008

"Erik de Castro Lopo" <mle+win at> wrote:

> /* get pointer to object containing list element */
> #define LIST_ENTRY(elem, type, field) \
> -    ((type *)((char *)(elem) - (unsigned int)(&((type *)0)->field)))
> +    ((type *)((char *)(elem) - (unsigned long)(&((type *)0)->field)))

It should be replaced with FIELD_OFFSET instead.


More information about the wine-devel mailing list