That’ll show ’em

Array

void initBlockBuffers(void) {
unsigned int i;

for (i = 0; i < NUMBER_OF_BLOCKS; ++i) {
_blocks[i].referenceCount = 0;
_blocks[i].logicalAddress = 1; // Cannot possibly be a valid aligned address except if BLOCK_SIZE = 1, in which case... well...

#if 1 == BLOCK_SIZE
#error BLOCK_SIZE cannot be 1.
#endif // #if 1 == BLOCK_SIZE

// ...ah-hah!
}
}

Leave a Reply