mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
intel/nullhw: Fix 32bits compilation warnings
../src/intel/nullhw-layer/intel_nullhw.c: In function ‘new_device_data’:
../src/intel/nullhw-layer/intel_nullhw.c:65:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
65 | #define HKEY(obj) ((uint64_t)(obj))
| ^
../src/intel/nullhw-layer/intel_nullhw.c:193:15: note: in expansion of macro ‘HKEY’
193 | map_object(HKEY(data->device), data);
Reviewed-by: Mark Janes <markjanes@swizzler.org>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27854>
This commit is contained in:
parent
209ae6bd41
commit
661ddf6084
1 changed files with 1 additions and 1 deletions
|
|
@ -62,7 +62,7 @@ static inline void ensure_vk_object_map(void)
|
|||
vk_object_to_data = _mesa_hash_table_u64_create(NULL);
|
||||
}
|
||||
|
||||
#define HKEY(obj) ((uint64_t)(obj))
|
||||
#define HKEY(obj) ((uintptr_t)(obj))
|
||||
#define FIND(type, obj) ((type *)find_object_data(HKEY(obj)))
|
||||
|
||||
static void *find_object_data(uint64_t obj)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue