mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-01 09:40:08 +01:00
util: Silence pointer to integer size mismatch errors.
This commit is contained in:
parent
69895725cf
commit
9fcf2b87b3
1 changed files with 1 additions and 1 deletions
|
|
@ -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))
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue