diff options
| author | Bram Moolenaar <Bram@vim.org> | 2014-03-30 16:11:43 +0200 |
|---|---|---|
| committer | Bram Moolenaar <Bram@vim.org> | 2014-03-30 16:11:43 +0200 |
| commit | 922a4664fe51662a24097b8e74e5f716beef12f4 (patch) | |
| tree | 50014c90eafda31e97acc98fe6e750570f70c391 /src/if_py_both.h | |
| parent | 498af70e066c66b66f1737b553287c1339846842 (diff) | |
| download | vim-git-922a4664fe51662a24097b8e74e5f716beef12f4.tar.gz | |
updated for version 7.4.228v7.4.228
Problem: Compiler warnings when building with Python 3.2.
Solution: Make type cast depend on Python version. (Ken Takata)
Diffstat (limited to 'src/if_py_both.h')
| -rw-r--r-- | src/if_py_both.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/if_py_both.h b/src/if_py_both.h index 4c9dd8b20..b26226977 100644 --- a/src/if_py_both.h +++ b/src/if_py_both.h @@ -2328,7 +2328,7 @@ ListItem(ListObject *self, PyObject* idx) { Py_ssize_t start, stop, step, slicelen; - if (PySlice_GetIndicesEx((PySliceObject *)idx, ListLength(self), + if (PySlice_GetIndicesEx((PySliceObject_T *)idx, ListLength(self), &start, &stop, &step, &slicelen) < 0) return NULL; return ListSlice(self, start, step, slicelen); @@ -2618,7 +2618,7 @@ ListAssItem(ListObject *self, PyObject *idx, PyObject *obj) { Py_ssize_t start, stop, step, slicelen; - if (PySlice_GetIndicesEx((PySliceObject *)idx, ListLength(self), + if (PySlice_GetIndicesEx((PySliceObject_T *)idx, ListLength(self), &start, &stop, &step, &slicelen) < 0) return -1; return ListAssSlice(self, start, step, slicelen, |
