0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 7.4.910

Problem:    Compiler complains about type punned pointer.
Solution:   Use another way to increment the ref count.
This commit is contained in:
Bram Moolenaar
2015-11-10 13:24:20 +01:00
parent de59ba33aa
commit e7427f4b7e
2 changed files with 8 additions and 4 deletions

View File

@@ -476,16 +476,18 @@ AlwaysNone(PyObject *self UNUSED)
AlwaysFalse(PyObject *self UNUSED) AlwaysFalse(PyObject *self UNUSED)
{ {
/* do nothing */ /* do nothing */
Py_INCREF(Py_False); PyObject *ret = Py_False;
return Py_False; Py_INCREF(ret);
return ret;
} }
static PyObject * static PyObject *
AlwaysTrue(PyObject *self UNUSED) AlwaysTrue(PyObject *self UNUSED)
{ {
/* do nothing */ /* do nothing */
Py_INCREF(Py_True); PyObject *ret = Py_True;
return Py_True; Py_INCREF(ret);
return ret;
} }
/***************/ /***************/

View File

@@ -741,6 +741,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
910,
/**/ /**/
909, 909,
/**/ /**/