mesa: avoid warning on Windows
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Mon, 5 Aug 2019 15:29:22 +0000 (17:29 +0200)
committerErik Faye-Lund <erik.faye-lund@collabora.com>
Thu, 8 Aug 2019 16:20:29 +0000 (18:20 +0200)
commit1e21bb41233c4c4abe95f734f815a7e415ad7e19
tree66c39ffc5621ce7aabf4b225f75d67560bdee82e
parente0a740c633da5d8f2b6040f7ef4929c95539aed8
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>
Acked-by: Eric Engestrom <eric@engestrom.ch>
src/gallium/auxiliary/util/u_helpers.c