1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
Author: Andreas Beckmann <anbe@debian.org>
Description: fix building with -Werror=int-conversion
Bug: https://puszcza.gnu.org.ua/bugs/index.php?646
Forwarded: https://puszcza.gnu.org.ua/bugs/download.php?file_id=544
Index: dico/modules/python/python.c
===================================================================
--- dico.orig/modules/python/python.c 2025-01-02 14:47:45.419666326 +0100
+++ dico/modules/python/python.c 2025-01-02 14:47:45.419666326 +0100
@@ -100,7 +100,7 @@
}
static PyTypeObject PySelectionKeyType = {
- PyObject_HEAD_INIT(&PyType_Type)
+ PyVarObject_HEAD_INIT(&PyType_Type, 0)
.tp_name = "DicoSelectionKey",
.tp_basicsize = sizeof (PySelectionKey),
.tp_dealloc = _PySelectionKey_dealloc,
@@ -185,7 +185,7 @@
}
static PyTypeObject PyStrategyType = {
- PyObject_HEAD_INIT(&PyType_Type)
+ PyVarObject_HEAD_INIT(&PyType_Type, 0)
.tp_name = "DicoStrategy",
.tp_basicsize = sizeof (PyStrategy),
.tp_dealloc = _PyStrategy_dealloc,
|