commit | 0e4eebd4254017970b7389f66315ebed1486e1ed | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Wed Feb 12 22:08:49 2014 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Wed Feb 12 22:08:49 2014 +0100 |
tree | 7d4b16926f9093580e15e0c5523c871941270603 | |
parent | f92d8a254ac092e525049ab930924d34eca0f114 [diff] [blame] |
updated for version 7.4.179 Problem: Warning for type-punned pointer. (Tony Mechelynck) Solution: Use intermediate variable.
diff --git a/src/if_py_both.h b/src/if_py_both.h index 9315324..a0902b2 100644 --- a/src/if_py_both.h +++ b/src/if_py_both.h
@@ -1617,8 +1617,9 @@ } 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);