diff options
author | Bram Moolenaar <Bram@vim.org> | 2014-01-14 19:35:56 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2014-01-14 19:35:56 +0100 |
commit | 5395e7afe93d38793dcd6520b277ec0d3b1882ac (patch) | |
tree | fadf9ada5e4b1e29d938d8bf765ffcebcf292643 /src/if_py_both.h | |
parent | 1028f4d75ee04261f1338620c22f388a05098bb0 (diff) | |
download | vim-git-5395e7afe93d38793dcd6520b277ec0d3b1882ac.tar.gz |
updated for version 7.4.153v7.4.153
Problem: Compiler warning for pointer type.
Solution: Add type cast.
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 01cbe418c..4d81a4b92 100644 --- a/src/if_py_both.h +++ b/src/if_py_both.h @@ -2326,7 +2326,7 @@ ListItem(ListObject *self, PyObject* idx) { Py_ssize_t start, stop, step, slicelen; - if (PySlice_GetIndicesEx(idx, ListLength(self), + if (PySlice_GetIndicesEx((PySliceObject *)idx, ListLength(self), &start, &stop, &step, &slicelen) < 0) return NULL; return ListSlice(self, start, step, slicelen); @@ -2616,7 +2616,7 @@ ListAssItem(ListObject *self, PyObject *idx, PyObject *obj) { Py_ssize_t start, stop, step, slicelen; - if (PySlice_GetIndicesEx(idx, ListLength(self), + if (PySlice_GetIndicesEx((PySliceObject *)idx, ListLength(self), &start, &stop, &step, &slicelen) < 0) return -1; return ListAssSlice(self, start, step, slicelen, |