Align a variable on the stack.
    BBasile via Digitalmars-d-learn 
    digitalmars-d-learn at puremagic.com
       
    Thu Nov  5 05:27:24 PST 2015
    
    
  
On Thursday, 5 November 2015 at 03:52:47 UTC, TheFlyingFiddle 
wrote:
> [...]
> I solved the problem by changing the struct to look like this.
> align(16) struct Pos
> {
>     float x = float.nan;
>     float y = float.nan;
>     float z = float.nan;
>     float w = float.nan;
> }
>
wow that's quite strange. FP members should be initialized 
without initializer ! Eg you should get the same with
align(16) struct Pos
{
      float x, y, ,z, w;
}
    
    
More information about the Digitalmars-d-learn
mailing list