Permalink
Browse files

updated for version 7.4.179

Problem:    Warning for type-punned pointer. (Tony Mechelynck)
Solution:   Use intermediate variable.
  • Loading branch information...
1 parent e735366 commit a8a2f1117aa446705b8a0cdc4ad25b7a8698aa0f @brammool brammool committed Feb 12, 2014
Showing with 5 additions and 2 deletions.
  1. +3 −2 src/if_py_both.h
  2. +2 −0 src/version.c
View
@@ -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);
View
@@ -738,6 +738,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 179,
/**/
178,
/**/

0 comments on commit a8a2f11

Please sign in to comment.