From: José Fonseca Date: Wed, 17 Mar 2010 19:50:33 +0000 (+0000) Subject: util: Silence pointer to integer size mismatch errors. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9fcf2b87b35240efe8dd8ebe7d2f40268e647902;p=mesa.git util: Silence pointer to integer size mismatch errors. --- diff --git a/src/gallium/auxiliary/util/u_memory.h b/src/gallium/auxiliary/util/u_memory.h index a2fc5973565..53d56599fe4 100644 --- a/src/gallium/auxiliary/util/u_memory.h +++ b/src/gallium/auxiliary/util/u_memory.h @@ -88,7 +88,7 @@ mem_dup(const void *src, uint size) /** * Offset of a field in a struct, in bytes. */ -#define Offset(TYPE, MEMBER) ((unsigned)&(((TYPE *)NULL)->MEMBER)) +#define Offset(TYPE, MEMBER) ((uintptr_t)&(((TYPE *)NULL)->MEMBER))