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:
Ingo Weinhold
2008-03-15 18:49:48 +00:00
parent 6191d9a8da
commit 5513309cb4
+4 -4
View File
@@ -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;