提交 370953c5 authored 作者: Frédéric Bastien's avatar Frédéric Bastien

Merge pull request #2401 from HapeMask/pyintfromlong_fix

[FIX] Add define for PyInt_FromSize_t for Python3.
......@@ -19,6 +19,7 @@
#define PyString_AsString PyUnicode_AsUTF8
#define PyString_FromStringAndSize PyUnicode_FromStringAndSize
#define PyString_Size PyUnicode_GET_SIZE
#define PyInt_FromSize_t PyLong_FromSize_t
// Python 3 expects a PyObject* as the first argument to PySlice_GetIndicesEx().
#define SLICE_CAST(x) (x)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论