NFC: pointer_offset* functions always return void*
This requires that the caller perform the cast on the output rather than the input, which is a little closer to the truth. Shuffle some casts into the right position.
This commit is contained in:
committed by
Matthew Parkinson
parent
f295a3f191
commit
cbab7a3455
@@ -101,8 +101,7 @@ namespace snmalloc
|
||||
void* bigger = remove_block(align_bits + 1);
|
||||
if (bigger != nullptr)
|
||||
{
|
||||
void* left_over =
|
||||
pointer_offset(bigger, bits::one_at_bit(align_bits));
|
||||
auto left_over = pointer_offset(bigger, bits::one_at_bit(align_bits));
|
||||
ranges[align_bits][0] = left_over;
|
||||
check_block(left_over, align_bits);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user