summaryrefslogtreecommitdiff
path: root/src/if_py_both.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2014-01-14 19:35:56 +0100
committerBram Moolenaar <Bram@vim.org>2014-01-14 19:35:56 +0100
commit5395e7afe93d38793dcd6520b277ec0d3b1882ac (patch)
treefadf9ada5e4b1e29d938d8bf765ffcebcf292643 /src/if_py_both.h
parent1028f4d75ee04261f1338620c22f388a05098bb0 (diff)
downloadvim-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.h4
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,