Add some casts to squelch complaints about alignment; our little slab

allocator should return properly-aligned items.

svn path=/trunk/; revision=36799
This commit is contained in:
Guy Harris 2011-04-22 07:58:19 +00:00
parent f1c2141a26
commit 3f756324b4
1 changed files with 2 additions and 2 deletions

View File

@ -68,8 +68,8 @@
#define SLAB_FREE(item, type) \
{ \
((union type ## slab_item *)item)->next_free = type ## _free_list; \
type ## _free_list = (union type ## slab_item *)item; \
((union type ## slab_item *)(void *)item)->next_free = type ## _free_list; \
type ## _free_list = (union type ## slab_item *)(void *)item; \
}
#endif /* slab.h */