wayland-util: Fix wl_array signedness warnings

This commit is contained in:
Kristian Høgsberg 2012-03-30 10:41:38 -04:00
parent 3fb304bb3e
commit 0ca75a4f32
2 changed files with 5 additions and 5 deletions

View file

@ -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)

View file

@ -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