Use a union instead of the macro.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24407 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -54,13 +54,13 @@ typedef struct heap_page_s {
|
||||
uint16 in_use : 1;
|
||||
heap_page_s * next;
|
||||
heap_page_s * prev;
|
||||
uint16 empty_index;
|
||||
union {
|
||||
uint16 empty_index;
|
||||
uint16 allocation_id; // used for bin == bin_count allocations
|
||||
};
|
||||
addr_t * free_list;
|
||||
} heap_page;
|
||||
|
||||
// used for bin == bin_count allocations
|
||||
#define allocation_id empty_index
|
||||
|
||||
typedef struct heap_bin_s {
|
||||
uint32 element_size;
|
||||
uint16 max_free_count;
|
||||
|
||||
Reference in New Issue
Block a user