taggedPointer to char array on heap

Ali Çehreli via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Jan 10 17:18:24 PST 2017


Apologies for using the newsgroup as a public repo... :/

On 01/10/2017 05:09 PM, Ali Çehreli wrote:

>     static if (alignment == 2) {
>         alias ImplType = ubyte*;

Should be

         alias ImplType = ushort*;

>     enum bitMask = (1 << alignment) - 1;

Should be

     enum bitMask = alignment - 1;

Leaving this thread now... :)

Ali



More information about the Digitalmars-d-learn mailing list