1
0
forked from Alepha/Alepha

Get it building again.

This commit is contained in:
2024-09-05 16:54:31 -04:00
parent ff738b9301
commit 3281530ce6
3 changed files with 39 additions and 17 deletions

View File

@ -227,11 +227,8 @@ namespace Alepha::Hydrogen ::detail:: Blob_m
* possible extra space, due to alignment).
*/
Blob
carveHead( const std::size_t unalignedAmount, Alignment alignment= Alignment{ 1 } )
carveHead( const std::size_t amount )
{
assert( std::popcount( alignment.amt ) == 1 );
// TODO: Consider arithmetic overflow, here.
const std::size_t amount= alignTo( ( reinterpret_cast< std::uintptr_t >( data() ) % alignment.amt ) + unalignedAmount, alignment );
if( amount > size() ) throw DataCarveTooLargeError( data(), amount, size() );
if( not storage )
{