mesa: avoid warning on Windows
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Tue, 13 Aug 2019 11:01:42 +0000 (13:01 +0200)
committerErik Faye-Lund <erik.faye-lund@collabora.com>
Thu, 15 Aug 2019 18:23:49 +0000 (20:23 +0200)
commit0091f62978b26e89e8c0581552b4b91667c658fd
treef4d9f9486dffe24bc674676a369b3c507a5958f6
parent544b0886165ff891bda59f9bd4ec058f8af53e5a
mesa: avoid warning on Windows

On Windows, p_atomic_inc_return returns an unsigned long long rather
than the type the pointer refers to, so let's make sure we cast the
result to the right type. Otherwise, we'll trigger a warning about
the wrong format-string for the type.

Signed-off-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/gallium/auxiliary/driver_ddebug/dd_draw.c