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 ronaldoussoren
Recipients mark.dickinson, ned.deily, ronaldoussoren, wayedt
Date 2014-07-21.08:09:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1405930155.42.0.724609420839.issue22012@psf.upfronthosting.co.za>
In-reply-to
Content
I just confirmed that clang only uses the LSB for _Bool values by looking at the assembly generated for the following code:

<quote>
#include <stdbool.h>
#include <stdio.h>

int main(void)
{
	_Bool x;
	*(unsigned char*)&x = 42;
	printf("%d\n", (int)x);
	return 0;
}
</quote>

The attached patch fixes the issue for me. The new testcase fails without the changes to _struct.c and passes with those changes.
History
Date User Action Args
2014-07-21 08:09:15ronaldoussorensetrecipients: + ronaldoussoren, mark.dickinson, ned.deily, wayedt
2014-07-21 08:09:15ronaldoussorensetmessageid: <1405930155.42.0.724609420839.issue22012@psf.upfronthosting.co.za>
2014-07-21 08:09:15ronaldoussorenlinkissue22012 messages
2014-07-21 08:09:15ronaldoussorencreate