Skip to content

Commit a8a2f11

Browse files
committed
updated for version 7.4.179
Problem: Warning for type-punned pointer. (Tony Mechelynck) Solution: Use intermediate variable.
1 parent e735366 commit a8a2f11

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/if_py_both.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1617,8 +1617,9 @@ _DictionaryItem(DictionaryObject *self, PyObject *args, int flags)
16171617
}
16181618
else if (flags & DICT_FLAG_RETURN_BOOL)
16191619
{
1620-
Py_INCREF(Py_True);
1621-
return Py_True;
1620+
ret = Py_True;
1621+
Py_INCREF(ret);
1622+
return ret;
16221623
}
16231624

16241625
di = dict_lookup(hi);

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -738,6 +738,8 @@ static char *(features[]) =
738738

739739
static int included_patches[] =
740740
{ /* Add new patch number below this line */
741+
/**/
742+
179,
741743
/**/
742744
178,
743745
/**/

0 commit comments

Comments
 (0)