0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

updated for version 7.4.179

Problem:    Warning for type-punned pointer. (Tony Mechelynck)
Solution:   Use intermediate variable.
This commit is contained in:
Bram Moolenaar
2014-02-12 22:08:49 +01:00
parent f92d8a254a
commit 0e4eebd425
2 changed files with 5 additions and 2 deletions

View 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);