New adapter: std.allocator.quantizer
Timon Gehr via Digitalmars-d
digitalmars-d at puremagic.com
Fri May 15 13:28:42 PDT 2015
On 05/15/2015 06:58 PM, Andrei Alexandrescu wrote:
> On 5/12/15 12:57 PM, Timon Gehr wrote:
>> ...
>>
>> Missed alignedReallocate. :o)
>>
>> On a related note, alignedReallocate is now also buggy in that it does
>> not necessarily align the allocated memory if b.ptr is null.
>
> Missed this, thanks for the email! I've simplified matters a bit by
> testing for null up front:
>
> https://github.com/andralex/phobos/commit/af0abf6adb325cf57f2ef0f07bf787ebb1351288
>
>
> I suspect the other allocators have similar issues though... I'll need
> to make a careful pass.
>
>
> Thanks!!
>
> Andrei
>
>
I have just noticed that all the calls to alignedAllocate do not pass
the alignment argument.
More information about the Digitalmars-d
mailing list