]> granicus.if.org Git - vim/commitdiff
updated for version 7.3.309 v7.3.309
authorBram Moolenaar <Bram@vim.org>
Wed, 14 Sep 2011 13:41:58 +0000 (15:41 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 14 Sep 2011 13:41:58 +0000 (15:41 +0200)
Problem:    Warnings for pointer types.
Solution:   Change PySliceObject to PyObject.

src/if_python3.c
src/version.c

index ebf402a4b0e35228414e82bc31f4c710f38be2b0..71de389e7cace4a231b39033a5657722da509bea 100644 (file)
@@ -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) {
index b2a1a857b05fc559bdb0aa3c3388c507e815fee6..ab54766890fc90488e60bd2c91bb227030cc1b0d 100644 (file)
@@ -709,6 +709,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    309,
 /**/
     308,
 /**/