]> granicus.if.org Git - vim/commitdiff
updated for version 7.4.179 v7.4.179
authorBram Moolenaar <Bram@vim.org>
Wed, 12 Feb 2014 21:08:49 +0000 (22:08 +0100)
committerBram Moolenaar <Bram@vim.org>
Wed, 12 Feb 2014 21:08:49 +0000 (22:08 +0100)
Problem:    Warning for type-punned pointer. (Tony Mechelynck)
Solution:   Use intermediate variable.

src/if_py_both.h
src/version.c

index 9315324c46d08ada17744bc96e08ec2a9193c9b5..a0902b21761edee9d1823f596eb014e5cea62a18 100644 (file)
@@ -1617,8 +1617,9 @@ _DictionaryItem(DictionaryObject *self, PyObject *args, int flags)
     }
     else if (flags & DICT_FLAG_RETURN_BOOL)
     {
-       Py_INCREF(Py_True);
-       return Py_True;
+       ret = Py_True;
+       Py_INCREF(ret);
+       return ret;
     }
 
     di = dict_lookup(hi);
index 16b2ea4e01065590eb49aa75db8ec498e48a40e2..1277b1e981820fc42a04dcb8818441008ee2ced3 100644 (file)
@@ -738,6 +738,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    179,
 /**/
     178,
 /**/