Changeset 232 in dev for trunk/abdev/BasicCompiler_Common/src/Class.cpp
- Timestamp:
- Jul 25, 2007, 4:04:11 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler_Common/src/Class.cpp
r224 r232 581 581 int offset = IsExistVirtualFunctions() ? PTR_SIZE : 0; 582 582 583 int alignment; 584 if(iAlign) alignment=iAlign; 585 else alignment=1; 583 int alignment = 1; 584 if( GetFixedAlignment() ) 585 { 586 alignment = GetFixedAlignment(); 587 } 586 588 587 589 int iMaxAlign=0; … … 605 607 606 608 //アラインメントを考慮 607 if( iAlign&&iAlign<member_size){609 if(GetFixedAlignment()&&GetFixedAlignment()<member_size){ 608 610 if(offset%alignment) offset+=alignment-(offset%alignment); 609 611 } … … 667 669 if(alignment==0) return 0; 668 670 669 if( iAlign) alignment=iAlign;671 if(GetFixedAlignment()) alignment=GetFixedAlignment(); 670 672 671 673 return alignment; … … 1254 1256 } 1255 1257 1256 pobj_c-> iAlign=iAlign;1258 pobj_c->SetFixedAlignment( iAlign ); 1257 1259 1258 1260 pobj_c->Readed();
Note:
See TracChangeset
for help on using the changeset viewer.