Patch 7.4.910 (after 7.4.905)
Problem: Compiler complains about type punned pointer.
Solution: Use another way to increment the ref count.
Files: src/if_py_both.h
*** ../vim-7.4.909/src/if_py_both.h 2015-11-02 13:28:43.573894165 +0100
--- src/if_py_both.h 2015-11-03 21:36:49.836998968 +0100
***************
*** 476,491 ****
AlwaysFalse(PyObject *self UNUSED)
{
/* do nothing */
! Py_INCREF(Py_False);
! return Py_False;
}
static PyObject *
AlwaysTrue(PyObject *self UNUSED)
{
/* do nothing */
! Py_INCREF(Py_True);
! return Py_True;
}
/***************/
--- 476,493 ----
AlwaysFalse(PyObject *self UNUSED)
{
/* do nothing */
! PyObject *ret = Py_False;
! Py_INCREF(ret);
! return ret;
}
static PyObject *
AlwaysTrue(PyObject *self UNUSED)
{
/* do nothing */
! PyObject *ret = Py_True;
! Py_INCREF(ret);
! return ret;
}
/***************/
*** ../vim-7.4.909/src/version.c 2015-11-03 22:03:08.730101439 +0100
--- src/version.c 2015-11-10 13:22:07.552159302 +0100
***************
*** 743,744 ****
--- 743,746 ----
{ /* Add new patch number below this line */
+ /**/
+ 910,
/**/
--
>From "know your smileys":
:-X My lips are sealed
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.