projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6989572
)
util: Silence pointer to integer size mismatch errors.
author
José Fonseca
<jfonseca@vmware.com>
Wed, 17 Mar 2010 19:50:33 +0000
(19:50 +0000)
committer
José Fonseca
<jfonseca@vmware.com>
Wed, 31 Mar 2010 19:16:15 +0000
(20:16 +0100)
src/gallium/auxiliary/util/u_memory.h
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/util/u_memory.h
b/src/gallium/auxiliary/util/u_memory.h
index a2fc5973565864f6616d44645e151f03ed5d5c20..53d56599fe4a5ae6e8001257880e108843431a27 100644
(file)
--- 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) ((u
nsigned
)&(((TYPE *)NULL)->MEMBER))
+#define Offset(TYPE, MEMBER) ((u
intptr_t
)&(((TYPE *)NULL)->MEMBER))