From: Mike D. Lowis Date: Wed, 1 Apr 2015 19:18:02 +0000 (-0400) Subject: Fixed the BLOCKMA_SIZE macro X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=1144767ea068ff7a129a7b3680501a9ad03641d2;p=archive%2Fatc.git Fixed the BLOCKMA_SIZE macro --- 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;