From 5513309cb44035ce79bf025bd94cd104c19e9597 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Sat, 15 Mar 2008 18:49:48 +0000 Subject: [PATCH] Use a union instead of the macro. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24407 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/kernel/heap.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/system/kernel/heap.cpp b/src/system/kernel/heap.cpp index 0720773e37..f90e24aefe 100644 --- a/src/system/kernel/heap.cpp +++ b/src/system/kernel/heap.cpp @@ -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;