util/vector: Fix u_vector_foreach when head rolls over
authorC Stout <cstout@google.com>
Thu, 16 Jan 2020 23:05:06 +0000 (15:05 -0800)
committerMarge Bot <eric+marge@anholt.net>
Fri, 17 Jan 2020 22:21:00 +0000 (22:21 +0000)
commitc1104e4ceefd4949a33421da9db6be437e801ce9
tree8614ff5ef5ae8cdfef32d6a191c5b8cb0847245b
parentb54b67e067da6ed22a7b8112cb6f8bed0e188272
util/vector: Fix u_vector_foreach when head rolls over

Also add unit tests for u_vector.

Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3453>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3453>
src/util/meson.build
src/util/tests/vector/meson.build [new file with mode: 0644]
src/util/tests/vector/vector_test.cpp [new file with mode: 0644]
src/util/u_vector.h