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 vstinner
Recipients vstinner
Date 2009-05-05.00:21:48
SpamBayes Score 7.1521235e-08
Marked as misclassified No
Message-id <1241482913.08.0.841842039373.issue5932@psf.upfronthosting.co.za>
In-reply-to
Content
_convertPyInt_AsSsize_t() always return 1 (success) even on 
PyInt_AsSsize_t() error because of a ";" after the if...

    if (*size_ptr == -1 && PyErr_Occurred());
        return 1;

Attached patch fixes this issue, and add a regression test.
History
Date User Action Args
2009-05-05 00:21:53vstinnersetrecipients: + vstinner
2009-05-05 00:21:53vstinnersetmessageid: <1241482913.08.0.841842039373.issue5932@psf.upfronthosting.co.za>
2009-05-05 00:21:50vstinnerlinkissue5932 messages
2009-05-05 00:21:50vstinnercreate