3ef2ca
To: vim_dev@googlegroups.com
3ef2ca
Subject: Patch 7.4.179
3ef2ca
Fcc: outbox
3ef2ca
From: Bram Moolenaar <Bram@moolenaar.net>
3ef2ca
Mime-Version: 1.0
3ef2ca
Content-Type: text/plain; charset=UTF-8
3ef2ca
Content-Transfer-Encoding: 8bit
3ef2ca
------------
3ef2ca
3ef2ca
Patch 7.4.179
3ef2ca
Problem:    Warning for type-punned pointer. (Tony Mechelynck)
3ef2ca
Solution:   Use intermediate variable.
3ef2ca
Files:	    src/if_py_both.h
3ef2ca
3ef2ca
3ef2ca
*** ../vim-7.4.178/src/if_py_both.h	2014-02-11 18:47:18.678311042 +0100
3ef2ca
--- src/if_py_both.h	2014-02-11 18:41:12.774305435 +0100
3ef2ca
***************
3ef2ca
*** 1617,1624 ****
3ef2ca
      }
3ef2ca
      else if (flags & DICT_FLAG_RETURN_BOOL)
3ef2ca
      {
3ef2ca
! 	Py_INCREF(Py_True);
3ef2ca
! 	return Py_True;
3ef2ca
      }
3ef2ca
  
3ef2ca
      di = dict_lookup(hi);
3ef2ca
--- 1617,1625 ----
3ef2ca
      }
3ef2ca
      else if (flags & DICT_FLAG_RETURN_BOOL)
3ef2ca
      {
3ef2ca
! 	ret = Py_True;
3ef2ca
! 	Py_INCREF(ret);
3ef2ca
! 	return ret;
3ef2ca
      }
3ef2ca
  
3ef2ca
      di = dict_lookup(hi);
3ef2ca
*** ../vim-7.4.178/src/version.c	2014-02-11 19:33:03.358353098 +0100
3ef2ca
--- src/version.c	2014-02-12 22:08:16.795819706 +0100
3ef2ca
***************
3ef2ca
*** 740,741 ****
3ef2ca
--- 740,743 ----
3ef2ca
  {   /* Add new patch number below this line */
3ef2ca
+ /**/
3ef2ca
+     179,
3ef2ca
  /**/
3ef2ca
3ef2ca
-- 
3ef2ca
Luxury. We used to have to get out of the lake at three o'clock in the 
3ef2ca
morning, clean the lake, eat a handful of hot gravel, go to work at the 
3ef2ca
mill every day for tuppence a month, come home, and Dad would beat us 
3ef2ca
around the head and neck with a broken bottle, if we were LUCKY!
3ef2ca
3ef2ca
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
3ef2ca
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
3ef2ca
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
3ef2ca
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///