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);
diff --git a/src/version.c b/src/version.c
index 16b2ea4..1277b1e 100644
--- a/src/version.c
+++ b/src/version.c
@@ -739,6 +739,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 179,
+/**/
178,
/**/
177,