mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 06:48:06 +02:00
util: Fix ptr -> int conversion.
This commit is contained in:
parent
c5c0e0172f
commit
f19b202556
1 changed files with 1 additions and 1 deletions
|
|
@ -28,7 +28,7 @@ util_surfaces_do_get(struct util_surfaces *us, unsigned surface_struct_size, str
|
|||
{ /* or 2D array */
|
||||
if(!us->u.table)
|
||||
us->u.table = util_hash_table_create(hash, compare);
|
||||
key = (void *)(((zslice + face) << 8) | level);
|
||||
key = (void *)(uintptr_t)(((zslice + face) << 8) | level);
|
||||
/* TODO: ouch, should have a get-reference function...
|
||||
* also, shouldn't allocate a two-pointer structure for each item... */
|
||||
ps = util_hash_table_get(us->u.table, key);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue