Changed type of nextBlock from void* to uintptr_t to avoid unnecessary casts and general specificity.