blob: 764200498ed1c99ae6c91a82e36e34621340e7b9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
diff --git a/python/svmc_wrap.c b/python/svmc_wrap.c
index 22ea45d..c4282b1 100644
--- a/python/svmc_wrap.c
+++ b/python/svmc_wrap.c
@@ -758,7 +758,7 @@ SWIG_Python_str_AsChar(PyObject *str)
#if PY_VERSION_HEX >= 0x03000000
char *cstr;
char *newstr;
- int len;
+ Py_ssize_t len;
str = PyUnicode_AsUTF8String(str);
PyBytes_AsStringAndSize(str, &cstr, &len);
newstr = (char *) malloc(len+1);
|