i guys i have a struct defined as below
Qt Code:
  1. typedef struct s_myStruct
  2. {
  3. uint8 A;
  4. uint8 B;
  5. uint8 C;
  6. uint8 D;
  7. uint32 E;
  8. uint16 F;
  9. } t_myStruct;
To copy to clipboard, switch view to plain text mode 

by the way i have it defined somewhere these uint stuff as
Qt Code:
  1. typedef char int8;
  2. typedef unsigned char uint8;
  3. typedef short int int16;
  4. typedef long int int32;
  5. typedef unsigned short int uint16;
  6. typedef unsigned long int uint32;
To copy to clipboard, switch view to plain text mode 

Now, my question is that when i do a
Qt Code:
  1. sizeof (t_myStruct)
To copy to clipboard, switch view to plain text mode 
it will come back as 12 , I was expecting 10.

what did i do wrong please guide me ...
baray98