Message158822
| 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: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 |
|