homepage

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 JohnLeitch
Recipients JohnLeitch, brycedarling, martin.panter, serhiy.storchaka, vstinner
Date 2015年09月03日.04:31:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1441254694.05.0.0662894194538.issue24989@psf.upfronthosting.co.za>
In-reply-to
Content
We based our fix on the check in write_bytes:
 if (endpos > (size_t)PyBytes_GET_SIZE(self->buf)) {
 if (resize_buffer(self, endpos) < 0)
 return -1;
 }
I see now that our casting was extraneous. As for the macro, it was suspected that similar issues may be present and we wanted to write reusable code, but this also seems unnecessary now that it's known the cast is unneeded.
Early tomorrow I'll take some time to create a revised patch.
History
Date User Action Args
2015年09月03日 04:31:34JohnLeitchsetrecipients: + JohnLeitch, vstinner, martin.panter, serhiy.storchaka, brycedarling
2015年09月03日 04:31:34JohnLeitchsetmessageid: <1441254694.05.0.0662894194538.issue24989@psf.upfronthosting.co.za>
2015年09月03日 04:31:34JohnLeitchlinkissue24989 messages
2015年09月03日 04:31:33JohnLeitchcreate

AltStyle によって変換されたページ (->オリジナル) /