static array alignment

John Colvin via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Nov 30 05:29:35 PST 2014


void main()
{
     align(128) float[128] a;
     assert((cast(size_t)(a.ptr) & 127) == 0);
}

the assert fails. What gives?


More information about the Digitalmars-d-learn mailing list