Karsten Hopp 7f338d
To: vim_dev@googlegroups.com
Karsten Hopp 7f338d
Subject: Patch 7.4.910
Karsten Hopp 7f338d
Fcc: outbox
Karsten Hopp 7f338d
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 7f338d
Mime-Version: 1.0
Karsten Hopp 7f338d
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 7f338d
Content-Transfer-Encoding: 8bit
Karsten Hopp 7f338d
------------
Karsten Hopp 7f338d
Karsten Hopp 7f338d
Patch 7.4.910 (after 7.4.905)
Karsten Hopp 7f338d
Problem:    Compiler complains about type punned pointer.
Karsten Hopp 7f338d
Solution:   Use another way to increment the ref count.
Karsten Hopp 7f338d
Files:      src/if_py_both.h
Karsten Hopp 7f338d
Karsten Hopp 7f338d
Karsten Hopp 7f338d
*** ../vim-7.4.909/src/if_py_both.h	2015-11-02 13:28:43.573894165 +0100
Karsten Hopp 7f338d
--- src/if_py_both.h	2015-11-03 21:36:49.836998968 +0100
Karsten Hopp 7f338d
***************
Karsten Hopp 7f338d
*** 476,491 ****
Karsten Hopp 7f338d
  AlwaysFalse(PyObject *self UNUSED)
Karsten Hopp 7f338d
  {
Karsten Hopp 7f338d
      /* do nothing */
Karsten Hopp 7f338d
!     Py_INCREF(Py_False);
Karsten Hopp 7f338d
!     return Py_False;
Karsten Hopp 7f338d
  }
Karsten Hopp 7f338d
  
Karsten Hopp 7f338d
      static PyObject *
Karsten Hopp 7f338d
  AlwaysTrue(PyObject *self UNUSED)
Karsten Hopp 7f338d
  {
Karsten Hopp 7f338d
      /* do nothing */
Karsten Hopp 7f338d
!     Py_INCREF(Py_True);
Karsten Hopp 7f338d
!     return Py_True;
Karsten Hopp 7f338d
  }
Karsten Hopp 7f338d
  
Karsten Hopp 7f338d
  /***************/
Karsten Hopp 7f338d
--- 476,493 ----
Karsten Hopp 7f338d
  AlwaysFalse(PyObject *self UNUSED)
Karsten Hopp 7f338d
  {
Karsten Hopp 7f338d
      /* do nothing */
Karsten Hopp 7f338d
!     PyObject	*ret = Py_False;
Karsten Hopp 7f338d
!     Py_INCREF(ret);
Karsten Hopp 7f338d
!     return ret;
Karsten Hopp 7f338d
  }
Karsten Hopp 7f338d
  
Karsten Hopp 7f338d
      static PyObject *
Karsten Hopp 7f338d
  AlwaysTrue(PyObject *self UNUSED)
Karsten Hopp 7f338d
  {
Karsten Hopp 7f338d
      /* do nothing */
Karsten Hopp 7f338d
!     PyObject	*ret = Py_True;
Karsten Hopp 7f338d
!     Py_INCREF(ret);
Karsten Hopp 7f338d
!     return ret;
Karsten Hopp 7f338d
  }
Karsten Hopp 7f338d
  
Karsten Hopp 7f338d
  /***************/
Karsten Hopp 7f338d
*** ../vim-7.4.909/src/version.c	2015-11-03 22:03:08.730101439 +0100
Karsten Hopp 7f338d
--- src/version.c	2015-11-10 13:22:07.552159302 +0100
Karsten Hopp 7f338d
***************
Karsten Hopp 7f338d
*** 743,744 ****
Karsten Hopp 7f338d
--- 743,746 ----
Karsten Hopp 7f338d
  {   /* Add new patch number below this line */
Karsten Hopp 7f338d
+ /**/
Karsten Hopp 7f338d
+     910,
Karsten Hopp 7f338d
  /**/
Karsten Hopp 7f338d
Karsten Hopp 7f338d
-- 
Karsten Hopp 7f338d
From "know your smileys":
Karsten Hopp 7f338d
 :-X	My lips are sealed
Karsten Hopp 7f338d
Karsten Hopp 7f338d
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 7f338d
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 7f338d
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 7f338d
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///