Skip to content

Commit b88a958

Browse files
committed
+1
1 parent 254c97d commit b88a958

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Objects/complexobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ c_powu(Py_complex x, long n)
163163
{
164164
Py_complex p = x, r = n-- ? p : c_1;
165165
long mask = 1;
166-
assert(0 <= n && n <= INT_EXP_CUTOFF);
166+
assert(-1 <= n && n <= INT_EXP_CUTOFF);
167167
while (n >= mask) {
168168
assert(mask>0);
169169
if (n & mask)

0 commit comments

Comments
 (0)