Ignore:
Timestamp:
Jul 25, 2007, 4:04:11 AM (17 years ago)
Author:
dai_9181
Message:
 
Location:
trunk/abdev/BasicCompiler_Common/src
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/abdev/BasicCompiler_Common/src/Class.cpp

    r224 r232  
    581581    int offset = IsExistVirtualFunctions() ? PTR_SIZE : 0;
    582582
    583     int alignment;
    584     if(iAlign) alignment=iAlign;
    585     else alignment=1;
     583    int alignment = 1;
     584    if( GetFixedAlignment() )
     585    {
     586        alignment = GetFixedAlignment();
     587    }
    586588
    587589    int iMaxAlign=0;
     
    605607
    606608        //アラインメントを考慮
    607         if(iAlign&&iAlign<member_size){
     609        if(GetFixedAlignment()&&GetFixedAlignment()<member_size){
    608610            if(offset%alignment) offset+=alignment-(offset%alignment);
    609611        }
     
    667669    if(alignment==0) return 0;
    668670
    669     if(iAlign) alignment=iAlign;
     671    if(GetFixedAlignment()) alignment=GetFixedAlignment();
    670672
    671673    return alignment;
     
    12541256            }
    12551257
    1256             pobj_c->iAlign=iAlign;
     1258            pobj_c->SetFixedAlignment( iAlign );
    12571259
    12581260            pobj_c->Readed();
Note: See TracChangeset for help on using the changeset viewer.