From: Bram Moolenaar Date: Tue, 10 Nov 2015 12:24:20 +0000 (+0100) Subject: patch 7.4.910 X-Git-Tag: v7.4.910 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e7427f4b7e1af6a63600183be6b4c5724beb2f66;p=vim patch 7.4.910 Problem: Compiler complains about type punned pointer. Solution: Use another way to increment the ref count. --- diff --git a/src/if_py_both.h b/src/if_py_both.h index e2f4857e4..1ad7dc616 100644 --- 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; } /***************/ diff --git a/src/version.c b/src/version.c index 73713feac..e8b664fa6 100644 --- a/src/version.c +++ b/src/version.c @@ -741,6 +741,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 910, /**/ 909, /**/