From a8a2f1117aa446705b8a0cdc4ad25b7a8698aa0f Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 12 Feb 2014 22:08:49 +0100 Subject: [PATCH] updated for version 7.4.179 Problem: Warning for type-punned pointer. (Tony Mechelynck) Solution: Use intermediate variable. --- src/if_py_both.h | 5 +++-- src/version.c | 2 ++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/if_py_both.h b/src/if_py_both.h index 9315324c46..a0902b2176 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 16b2ea4e01..1277b1e981 100644 --- a/src/version.c +++ b/src/version.c @@ -738,6 +738,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 179, /**/ 178, /**/