changeset 7202:de43f10a3850 v7.4.910

commit https://github.com/vim/vim/commit/e7427f4b7e1af6a63600183be6b4c5724beb2f66 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Nov 10 13:24:20 2015 +0100 patch 7.4.910 Problem: Compiler complains about type punned pointer. Solution: Use another way to increment the ref count.
author Christian Brabandt <cb@256bit.org>
date Tue, 10 Nov 2015 13:30:04 +0100
parents 5fe47f21f158
children 1e5c9739fc1c
files src/if_py_both.h src/version.c
diffstat 2 files changed, 8 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/if_py_both.h
+++ b/src/if_py_both.h
@@ -476,16 +476,18 @@ AlwaysNone(PyObject *self UNUSED)
 AlwaysFalse(PyObject *self UNUSED)
 {
     /* do nothing */
-    Py_INCREF(Py_False);
-    return Py_False;
+    PyObject	*ret = Py_False;
+    Py_INCREF(ret);
+    return ret;
 }
 
     static PyObject *
 AlwaysTrue(PyObject *self UNUSED)
 {
     /* do nothing */
-    Py_INCREF(Py_True);
-    return Py_True;
+    PyObject	*ret = Py_True;
+    Py_INCREF(ret);
+    return ret;
 }
 
 /***************/
--- a/src/version.c
+++ b/src/version.c
@@ -742,6 +742,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    910,
+/**/
     909,
 /**/
     908,