summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2011-09-14 15:41:58 +0200
committerBram Moolenaar <Bram@vim.org>2011-09-14 15:41:58 +0200
commit9e8edf6ee6340aa490be3981dedfbb836f0b9141 (patch)
treed0d032eacca0fb483fc2d815a0cc5324de18e7a4
parentb5b5b895f7ddeda49ff36566e454cbf1444fb788 (diff)
downloadvim-git-9e8edf6ee6340aa490be3981dedfbb836f0b9141.tar.gz
updated for version 7.3.309v7.3.309
Problem: Warnings for pointer types. Solution: Change PySliceObject to PyObject.
-rw-r--r--src/if_python3.c8
-rw-r--r--src/version.c2
2 files changed, 6 insertions, 4 deletions
diff --git a/src/if_python3.c b/src/if_python3.c
index ebf402a4b..71de389e7 100644
--- a/src/if_python3.c
+++ b/src/if_python3.c
@@ -1030,7 +1030,7 @@ BufferSubscript(PyObject *self, PyObject* idx)
} else if (PySlice_Check(idx)) {
Py_ssize_t start, stop, step, slicelen;
- if (PySlice_GetIndicesEx((PySliceObject *)idx,
+ if (PySlice_GetIndicesEx((PyObject *)idx,
(Py_ssize_t)((BufferObject *)(self))->buf->b_ml.ml_line_count+1,
&start, &stop,
&step, &slicelen) < 0) {
@@ -1054,7 +1054,7 @@ BufferAsSubscript(PyObject *self, PyObject* idx, PyObject* val)
} else if (PySlice_Check(idx)) {
Py_ssize_t start, stop, step, slicelen;
- if (PySlice_GetIndicesEx((PySliceObject *)idx,
+ if (PySlice_GetIndicesEx((PyObject *)idx,
(Py_ssize_t)((BufferObject *)(self))->buf->b_ml.ml_line_count+1,
&start, &stop,
&step, &slicelen) < 0) {
@@ -1142,7 +1142,7 @@ RangeSubscript(PyObject *self, PyObject* idx)
} else if (PySlice_Check(idx)) {
Py_ssize_t start, stop, step, slicelen;
- if (PySlice_GetIndicesEx((PySliceObject *)idx,
+ if (PySlice_GetIndicesEx((PyObject *)idx,
((RangeObject *)(self))->end-((RangeObject *)(self))->start+1,
&start, &stop,
&step, &slicelen) < 0) {
@@ -1164,7 +1164,7 @@ RangeAsSubscript(PyObject *self, PyObject *idx, PyObject *val)
} else if (PySlice_Check(idx)) {
Py_ssize_t start, stop, step, slicelen;
- if (PySlice_GetIndicesEx((PySliceObject *)idx,
+ if (PySlice_GetIndicesEx((PyObject *)idx,
((RangeObject *)(self))->end-((RangeObject *)(self))->start+1,
&start, &stop,
&step, &slicelen) < 0) {
diff --git a/src/version.c b/src/version.c
index b2a1a857b..ab5476689 100644
--- a/src/version.c
+++ b/src/version.c
@@ -710,6 +710,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 309,
+/**/
308,
/**/
307,