mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-04 13:29:51 -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_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;
|
void *data, *p;
|
||||||
|
|
||||||
if (array->alloc > 0)
|
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))
|
pos = __wl_container_of(pos->member.prev, pos, member))
|
||||||
|
|
||||||
struct wl_array {
|
struct wl_array {
|
||||||
uint32_t size;
|
size_t size;
|
||||||
uint32_t alloc;
|
size_t alloc;
|
||||||
void *data;
|
void *data;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -153,7 +153,7 @@ struct wl_array {
|
||||||
|
|
||||||
void wl_array_init(struct wl_array *array);
|
void wl_array_init(struct wl_array *array);
|
||||||
void wl_array_release(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);
|
void wl_array_copy(struct wl_array *array, struct wl_array *source);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue