wayland-util: Fix wl_array signedness warnings

parent 3fb304bb
......@@ -97,9 +97,9 @@ wl_array_release(struct wl_array *array)
WL_EXPORT void *
wl_array_add(struct wl_array *array, int size)
wl_array_add(struct wl_array *array, size_t size)
int alloc;
size_t alloc;
void *data, *p;
if (array->alloc > 0)
......@@ -141,8 +141,8 @@ void wl_list_insert_list(struct wl_list *list, struct wl_list *other);
pos = __wl_container_of(pos->member.prev, pos, member))
struct wl_array {
uint32_t size;
uint32_t alloc;
size_t size;
size_t alloc;
void *data;
......@@ -153,7 +153,7 @@ struct wl_array {
void wl_array_init(struct wl_array *array);
void wl_array_release(struct wl_array *array);
void *wl_array_add(struct wl_array *array, int size);
void *wl_array_add(struct wl_array *array, size_t size);
void wl_array_copy(struct wl_array *array, struct wl_array *source);
#ifdef __cplusplus
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment