|
Archives
D Programming
DD.gnu digitalmars.D digitalmars.D.bugs digitalmars.D.dtl digitalmars.D.ide digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript electronics |
digitalmars.D.learn - struct members align
I have some problem with struct alignment. My struct is:
struct some_struct
{
ubyte member1;
ubyte member2;
ubyte member3;
ushort member5;
ushort member6;
}
The appearance of members is fixed. member5 shifted by 1 byte down to member6.
How to fix this problem?
Apr 28 2008
alxdef wrote: Apr 28 2008
Lutger Wrote: Apr 28 2008
alxdef wrote:Lutger Wrote: Apr 28 2008
|