This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author boa124
Recipients boa124
Date 2013-04-02.12:40:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1364906451.57.0.179854550538.issue17617@psf.upfronthosting.co.za>
In-reply-to
Content
struct.calcsize('iiiii?') : 21

appears to be incorrect ; in C sizeof : 24

C code:
typedef struct {
  int	param1;
  int	param2;
  int	param3;
  int	param4;
  int	param5;
  unsigned char param6;
} struct_titi6;

main:
struct_titi6 toto3;
printf("taille toto3 : %d\n",sizeof(toto3));
printf("taille toto3.param1 : %d\n",sizeof(toto3.param1));
printf("taille toto3.param6 : %d\n",sizeof(toto3.param6));

results:
taille toto3 : 24
taille toto3.param1 : 4
taille toto3.param6 : 1
History
Date User Action Args
2013-04-02 12:40:51boa124setrecipients: + boa124
2013-04-02 12:40:51boa124setmessageid: <1364906451.57.0.179854550538.issue17617@psf.upfronthosting.co.za>
2013-04-02 12:40:51boa124linkissue17617 messages
2013-04-02 12:40:51boa124create