diff options
author | Benjamin Chrétien | 2015-06-21 16:01:56 +0900 |
---|---|---|
committer | Benjamin Chrétien | 2015-06-21 16:01:56 +0900 |
commit | 89b68efae23241b99cbb7098d752606f0967da15 (patch) | |
tree | aab1ef8021ebbd4c1e5cdf7e4de8484ca99e7fee /PyLong.patch | |
parent | e5f18c06ed7bfe7ec7b37c8e1e6b4f983ebb0a71 (diff) | |
download | aur-python2-pybindgen.tar.gz |
python2-pybindgen: apply patch
Diffstat (limited to 'PyLong.patch')
-rw-r--r-- | PyLong.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/PyLong.patch b/PyLong.patch new file mode 100644 index 000000000000..f6a3a47ba291 --- /dev/null +++ b/PyLong.patch @@ -0,0 +1,26 @@ +--- pybindgen_unfix/pybindgen/pytypeobject.py 2015-04-13 12:35:28.815857809 +0200 ++++ pybindgen/pybindgen/pytypeobject.py 2015-04-13 12:58:13.561729000 +0200 +@@ -293,7 +293,11 @@ + Py_XDECREF(py_result); + return -1; + } ++#if PY_MAJOR_VERSION >= 3 + result = PyLong_AsSsize_t(py_result); ++#else ++ result = PyInt_AsSsize_t(py_result); ++#endif + Py_DECREF(py_result); + return result; + } +@@ -323,7 +319,11 @@ + Py_XDECREF(py_result); + return -1; + } ++#if PY_MAJOR_VERSION >= 3 + result = PyLong_AsSsize_t(py_result); ++#else ++ result = PyInt_AsSsize_t(py_result); ++#endif + Py_DECREF(py_result); + return result; + } |