Skip to content

Commit a45f3c2

Browse files
committed
Use right PyLong constructor
1 parent f03b895 commit a45f3c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Objects/bytearrayobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2681,7 +2681,7 @@ bytearray_sizeof_impl(PyByteArrayObject *self)
26812681
res += alloc;
26822682
}
26832683

2684-
return PyLong_FromSize_t(res);
2684+
return PyLong_FromSsize_t(res);
26852685
}
26862686

26872687
static PySequenceMethods bytearray_as_sequence = {

0 commit comments

Comments
 (0)