Removed dummy variable from "struct mem" and handled all MEM_ALIGNMENT cases

Fixes bug #1912
This commit is contained in:
kieranm 2002-12-18 12:01:24 +00:00
parent af0d6bc881
commit 9eebc135ce

View File

@ -50,10 +50,15 @@
struct mem {
mem_size_t next, prev;
#if MEM_ALIGNMENT == 1
u8_t used;
#if MEM_ALIGNMENT == 2
u8_t dummy;
#endif /* MEM_ALIGNEMNT == 2 */
#elif MEM_ALIGNMENT == 2
u16_t used;
#elif MEM_ALIGNMENT == 4
u32_t used;
#else
#error "unhandled MEM_ALIGNMENT size"
#endif /* MEM_ALIGNMENT */
};
static struct mem *ram_end;