diff options
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/tupleobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/tupleobject.c b/Objects/tupleobject.c index 225835c..18b3315 100644 --- a/Objects/tupleobject.c +++ b/Objects/tupleobject.c @@ -374,7 +374,7 @@ tuplerepeat(a, n) return (PyObject *)a; } size = a->ob_size * n; - if (size/n != a->ob_size) + if (size/a->ob_size != n) return PyErr_NoMemory(); np = (PyTupleObject *) PyTuple_New(size); if (np == NULL) |