summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2014-02-12 22:08:49 +0100
committerBram Moolenaar <Bram@vim.org>2014-02-12 22:08:49 +0100
commit0e4eebd4254017970b7389f66315ebed1486e1ed (patch)
tree7d4b16926f9093580e15e0c5523c871941270603
parentf92d8a254ac092e525049ab930924d34eca0f114 (diff)
downloadvim-git-0e4eebd4254017970b7389f66315ebed1486e1ed.tar.gz
updated for version 7.4.179v7.4.179
Problem: Warning for type-punned pointer. (Tony Mechelynck) Solution: Use intermediate variable.
-rw-r--r--src/if_py_both.h5
-rw-r--r--src/version.c2
2 files changed, 5 insertions, 2 deletions
diff --git a/src/if_py_both.h b/src/if_py_both.h
index 9315324c4..a0902b217 100644
--- a/src/if_py_both.h
+++ b/src/if_py_both.h
@@ -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);
diff --git a/src/version.c b/src/version.c
index 16b2ea4e0..1277b1e98 100644
--- a/src/version.c
+++ b/src/version.c
@@ -739,6 +739,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 179,
+/**/
178,
/**/
177,