mesa/util: fix arithmetic use of 'void *' in u_vector_foreach
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 30 May 2017 15:41:32 +0000 (17:41 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 31 May 2017 07:19:54 +0000 (09:19 +0200)
commitd8debc6aad85094baeba2014b46b6613c4a35ee7
treea87b8b6086b758af5bbae5d0674e694faf791a03
parent4e93da30f0e5efe4ba7f54a5af2b9e58bd74c98d
mesa/util: fix arithmetic use of 'void *' in u_vector_foreach

u_vector_foreach is currently only used by the Intel Vulkan
driver but when this macro is used in mesa core, GCC reports
a compile-time error. Probably because some compiler options
are different.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/util/u_vector.h