Skip to content

Commit bf9f3a5

Browse files
authored
Merge pull request #43 from cjwatson/py-ssize-t-clean
Define PY_SSIZE_T_CLEAN for Python 3.10
2 parents a11cb33 + afbd65d commit bf9f3a5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

fuseparts/_fusemodule.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#define FUSE_USE_VERSION 26
2626
#endif
2727

28+
#define PY_SSIZE_T_CLEAN
2829
#include <Python.h>
2930
#include <fuse.h>
3031
#include <sys/ioctl.h>
@@ -1186,7 +1187,7 @@ ioctl_func(const char *path, int cmd, void *arg,
11861187
{
11871188
char* s;
11881189
char* input_data;
1189-
int input_data_size, output_data_size;
1190+
Py_ssize_t input_data_size, output_data_size;
11901191

11911192
input_data = (char*) data;
11921193
input_data_size = _IOC_SIZE(cmd);

0 commit comments

Comments
 (0)