Message167740
| Author |
vstinner |
| Recipients |
benjamin.peterson, georg.brandl, ned.deily, pitrou, vstinner |
| Date |
2012年08月09日.00:09:38 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1344470979.35.0.60856751492.issue15597@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
__suppress_context__ is a member using T_BOOL type. T_BOOL expects the C type "char", whereas the field in the PyBaseExceptionObject is a C "int". Attached patch changes the type and should fix the issue.
The test fails because writing into the field uses:
*(char*)field = value;
Which does not work in big endian if the field is a pointer to an int. |
|