From 1144767ea068ff7a129a7b3680501a9ad03641d2 Mon Sep 17 00:00:00 2001 From: "Mike D. Lowis" Date: Wed, 1 Apr 2015 15:18:02 -0400 Subject: [PATCH] Fixed the BLOCKMA_SIZE macro --- source/runtime/segment.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/runtime/segment.h b/source/runtime/segment.h index 3c35b5c..86afffa 100644 --- a/source/runtime/segment.h +++ b/source/runtime/segment.h @@ -10,7 +10,7 @@ #define NUM_BLOCKS (256u) -#define BLOCKMAP_SIZE (sizeof(uint16_t) + (NUM_BLOCKS / sizeof(uint16_t))) +#define BLOCKMAP_SIZE ((sizeof(uint16_t) * 8) + 1) typedef struct { uintptr_t blocksize; -- 2.54.0