Skip to content

Commit 5b6869b

Browse files
committed
CI: Fix msgpack ExtType unpack errors on Windows in Python 3.5
1 parent d0ac06a commit 5b6869b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/src/msgpack/unpack.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -265,9 +265,9 @@ static inline int unpack_callback_ext(unpack_user* u, const char* base, const ch
265265
}
266266
// length also includes the typecode, so the actual data is length-1
267267
#if PY_MAJOR_VERSION == 2
268-
py = PyObject_CallFunction(u->ext_hook, "(is#)", typecode, pos, length-1);
268+
py = PyObject_CallFunction(u->ext_hook, "(is#)", typecode, pos, (Py_ssize_t)length-1);
269269
#else
270-
py = PyObject_CallFunction(u->ext_hook, "(iy#)", typecode, pos, length-1);
270+
py = PyObject_CallFunction(u->ext_hook, "(iy#)", typecode, pos, (Py_ssize_t)length-1);
271271
#endif
272272
if (!py)
273273
return -1;

0 commit comments

Comments
 (0)