map: use uintptr_t for the next pointer

This aligns the low bits of the next field with the low bits of the
pointer on big endian cpus.

Fixes #1747
This commit is contained in:
Wim Taymans 2021-10-25 16:15:17 +02:00
parent c07f0ccb71
commit 5dfc3494dc

View file

@ -74,7 +74,7 @@ extern "C" {
* first item to get re-used on the next insert.
*/
union pw_map_item {
uint32_t next; /* next free index */
uintptr_t next; /* next free index */
void *data; /* data of this item, must be an even address */
};