gallium: fix a warning
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Mon, 23 Sep 2019 11:36:45 +0000 (13:36 +0200)
committerErik Faye-Lund <erik.faye-lund@collabora.com>
Tue, 14 Jan 2020 11:01:05 +0000 (12:01 +0100)
commitfcdd3c866bac6aaabef7057519931f675df156fc
tree7b8ab23d5f4e9576a692de31334a162cb810c6a3
parent1a1e5a763a550b96285f10c66c2d96d5c224c2c1
gallium: fix a warning

On some platforms (like Win64), unsigned long is 32-bit, so the first
cast doesn't do anything, and the compiler complains about an implicit
cast to a smaller type. So let's cast to an uintptr_t instead first,
as that's large enough on all platforms.

Signed-off-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/auxiliary/util/u_debug_flush.c