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.12:06:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1334923589.41.0.732390815293.issue14630@psf.upfronthosting.co.za>
In-reply-to
Content
The fix for _PyLong_Copy is the following:

diff --git a/Objects/longobject.c b/Objects/longobject.c
--- a/Objects/longobject.c
+++ b/Objects/longobject.c
@@ -156,7 +156,7 @@ PyObject *
     if (i < 0)
         i = -(i);
     if (i < 2) {
-        sdigit ival = src->ob_digit[0];
+        sdigit ival = (i == 0) ? 0 : src->ob_digit[0];
         if (Py_SIZE(src) < 0)
             ival = -ival;
         CHECK_SMALL_INT(ival);
History
Date User Action Args
2012-04-20 12:06:29pitrousetrecipients: + pitrou, mark.dickinson, skrah, brechtm
2012-04-20 12:06:29pitrousetmessageid: <1334923589.41.0.732390815293.issue14630@psf.upfronthosting.co.za>
2012-04-20 12:06:28pitroulinkissue14630 messages
2012-04-20 12:06:28pitroucreate