diff options
author | José Fonseca <jfonseca@vmware.com> | 2010-03-17 19:50:33 +0000 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2010-03-31 20:16:15 +0100 |
commit | 9fcf2b87b35240efe8dd8ebe7d2f40268e647902 (patch) | |
tree | 3cd047eb3192946e850300fc5b2ba05b91222194 | |
parent | 69895725cfe9d4dc917ff6e643af9e6e3a6e093f (diff) |
util: Silence pointer to integer size mismatch errors.
-rw-r--r-- | src/gallium/auxiliary/util/u_memory.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/util/u_memory.h b/src/gallium/auxiliary/util/u_memory.h index a2fc597356..53d56599fe 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)) |