mirror of
https://github.com/borgbackup/borg.git
synced 2025-02-19 04:41:50 +00:00
hashindex: Cython defines PY_SSIZE_T_CLEAN
This commit is contained in:
parent
19c8adb109
commit
b75c214af5
1 changed files with 1 additions and 1 deletions
|
@ -473,7 +473,7 @@ hashindex_write(HashIndex *index, PyObject *file_py)
|
|||
.value_size = index->value_size
|
||||
};
|
||||
|
||||
length_object = PyObject_CallMethod(file_py, "write", "y#", &header, (int)sizeof(HashHeader));
|
||||
length_object = PyObject_CallMethod(file_py, "write", "y#", &header, (Py_ssize_t)sizeof(HashHeader));
|
||||
if(PyErr_Occurred()) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue