util: Use util_is_power_of_two_nonzero in u_vector
authorIan Romanick <ian.d.romanick@intel.com>
Mon, 26 Mar 2018 17:52:43 +0000 (10:52 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Thu, 29 Mar 2018 21:09:28 +0000 (14:09 -0700)
commitcd18aa1e50e4668c8d992816bcdb74376dd1064c
treeb0872c60db06300edeb742ecd786118c59bce4d1
parent22fbb5c5949b1590ef04b6432dd7f3a93a37c2ed
util: Use util_is_power_of_two_nonzero in u_vector

Previously size=0, element_size=0 would have been allowed.  That
combination can only lead to despair.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
src/util/u_vector.c