Message158822
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); |
|
Date |
User |
Action |
Args |
2012-04-20 12:06:29 | pitrou | set | recipients:
+ pitrou, mark.dickinson, skrah, brechtm |
2012-04-20 12:06:29 | pitrou | set | messageid: <1334923589.41.0.732390815293.issue14630@psf.upfronthosting.co.za> |
2012-04-20 12:06:28 | pitrou | link | issue14630 messages |
2012-04-20 12:06:28 | pitrou | create | |
|