mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -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:
@@ -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;
|
||||
}
|
||||
|
||||
/***************/
|
||||
|
Reference in New Issue
Block a user