mirror of
https://github.com/openbsd/ports.git
synced 2026-06-18 07:24:23 +02:00
8b8f1945fb
net/dico uses the wrong initalisation function for the PyTypeObject. This diff is equal to the one debian uses. ok bentley@
24 lines
736 B
Plaintext
24 lines
736 B
Plaintext
fix builting with -Wint-conversion
|
|
|
|
Index: modules/python/python.c
|
|
--- modules/python/python.c.orig
|
|
+++ modules/python/python.c
|
|
@@ -100,7 +100,7 @@ _PySelectionKey_str (PyObject *self)
|
|
}
|
|
|
|
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 @@ _PyStrategy_str (PyObject *self)
|
|
}
|
|
|
|
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,
|