]> git.mdlowis.com Git - archive/atc.git/commitdiff
Fixed the BLOCKMA_SIZE macro
authorMike D. Lowis <mike.lowis@gentex.com>
Wed, 1 Apr 2015 19:18:02 +0000 (15:18 -0400)
committerMike D. Lowis <mike.lowis@gentex.com>
Wed, 1 Apr 2015 19:18:02 +0000 (15:18 -0400)
source/runtime/segment.h

index 3c35b5cc49832a8890209ac1268918a0fab0a40e..86afffa2ec9e2f7387f4281f189878bcfeab8851 100644 (file)
@@ -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;