Skip to content

Commit f56f093

Browse files
committed
try to fix ubuntu fail
1 parent 8177a3f commit f56f093

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pyfastutil/src/ints/BigIntArrayList.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -413,10 +413,10 @@ static PyObject *BigIntArrayList_sort(PyObject *pySelf, PyObject *args, PyObject
413413
auto *self = reinterpret_cast<BigIntArrayList *>(pySelf);
414414

415415
PyObject *keyFunc = nullptr;
416-
long long reverseInt = 0; // default: false
416+
int reverseInt = 0; // default: false
417417
static const char *kwlist[] = {"key", "reverse", nullptr};
418418

419-
if (!PyArg_ParseTupleAndKeywords(args, kwargs, "|OL", const_cast<char **>(kwlist), &keyFunc, &reverseInt)) {
419+
if (!PyArg_ParseTupleAndKeywords(args, kwargs, "|Oi", const_cast<char **>(kwlist), &keyFunc, &reverseInt)) {
420420
return nullptr;
421421
}
422422

0 commit comments

Comments
 (0)