Type int on struct error
<p>I got the following struct:</p>

<pre><code>struct Packet
{
    short PacketSize;
    short Type;
};

struct SizeValidity
{
    short SizeEnc;
};

struct SendEncSecureCode
{
    Packet header;
    short EncSecurityToken;
    int lTime;
    SizeValidity ending;
};
</code></pre>

<p>And on my code i want to get the size of the struct with the sizeof operator like this:</p>

<pre><code>SendEncSecureCode sendpacket;
sendpacket.header.PacketSize = sizeof SendEncSecureCode;
</code></pre>

<p>Problem is i always get size 0x10 instead of 0x0C i am specting, so i change the INT type to DWORD and still the same problem, later i try with DWORD32 and still the same, the compiler is setting it as 8 bytes. I am working on VC11 Beta and the soft is aim to x86 not x64. Thanks</p>
