mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-03 09:01:42 -05:00
wayland-util: Fix wl_array signedness warnings
This commit is contained in:
parent
3fb304bb3e
commit
0ca75a4f32
2 changed files with 5 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue