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 pitrou
Recipients brechtm, mark.dickinson, pitrou, skrah
Date 2012-04-20.10:53:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1334919213.24.0.942026374344.issue14630@psf.upfronthosting.co.za>
In-reply-to
Content
Reproduced under 32-bit Linux.
The problem seems to be that Py_SIZE(x) == 0 when x is Integer(0), but ob_digit[0] is still supposed to be significant. There's probably some overwriting with the trailing attributes.
By forcing Py_SIZE(x) == 1, the bug disappears, but it probably breaks lots of other stuff in longobject.c.
History
Date User Action Args
2012-04-20 10:53:33pitrousetrecipients: + pitrou, mark.dickinson, skrah, brechtm
2012-04-20 10:53:33pitrousetmessageid: <1334919213.24.0.942026374344.issue14630@psf.upfronthosting.co.za>
2012-04-20 10:53:32pitroulinkissue14630 messages
2012-04-20 10:53:32pitroucreate