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:
parent
f1c2141a26
commit
3f756324b4
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue