mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 11:48:06 +02:00
nir: avoid warning when casting bogus pointer
This intentionally-bogus pointer generates a warning on some 64-bit systems, so let's cast to a properly-sized integer first. Signed-off-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
parent
b355eef920
commit
c646cd4bac
1 changed files with 1 additions and 1 deletions
|
|
@ -58,7 +58,7 @@ nir_deref_path_init(nir_deref_path *path,
|
|||
#ifndef NDEBUG
|
||||
/* Just in case someone uses short_path by accident */
|
||||
for (unsigned i = 0; i < ARRAY_SIZE(path->_short_path); i++)
|
||||
path->_short_path[i] = (void *)0xdeadbeef;
|
||||
path->_short_path[i] = (void *)(uintptr_t)0xdeadbeef;
|
||||
#endif
|
||||
|
||||
path->path = ralloc_array(mem_ctx, nir_deref_instr *, count + 1);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue