1 diff -ur ice-3.6.3/python/modules/IcePy/Operation.cpp ice-3.6.3-gcc11/python/modules/IcePy/Operation.cpp
2 --- ice-3.6.3/python/modules/IcePy/Operation.cpp 2016-10-05 16:59:08.000000000 +0200
3 +++ ice-3.6.3-gcc11/python/modules/IcePy/Operation.cpp 2021-10-17 22:55:04.065560566 +0200
8 - if(PyTuple_SET_ITEM(results.get(), info->pos, Unset) < 0)
9 + if(PyTuple_SET_ITEM(results.get(), info->pos, Unset) != 0)
14 throwPythonException();
17 - if(PyTuple_SET_ITEM(result.get(), 0, ok ? incTrue() : incFalse()) < 0)
18 + if(PyTuple_SET_ITEM(result.get(), 0, ok ? incTrue() : incFalse()) != 0)
20 throwPythonException();
26 - if(PyTuple_SET_ITEM(result.get(), 1, op.get()) < 0)
27 + if(PyTuple_SET_ITEM(result.get(), 1, op.get()) != 0)
29 throwPythonException();
35 - if(PyTuple_SET_ITEM(args.get(), 0, ok ? incTrue() : incFalse()) < 0)
36 + if(PyTuple_SET_ITEM(args.get(), 0, ok ? incTrue() : incFalse()) != 0)
41 memcpy(buf, results.first, sz);
44 - if(PyTuple_SET_ITEM(args.get(), 1, op.get()) < 0)
45 + if(PyTuple_SET_ITEM(args.get(), 1, op.get()) != 0)
53 - if(PyTuple_SET_ITEM(args.get(), 0, ok ? incTrue() : incFalse()) < 0)
54 + if(PyTuple_SET_ITEM(args.get(), 0, ok ? incTrue() : incFalse()) != 0)
56 assert(PyErr_Occurred());
59 memcpy(buf, results.first, sz);
62 - if(PyTuple_SET_ITEM(args.get(), 1, op.get()) < 0)
63 + if(PyTuple_SET_ITEM(args.get(), 1, op.get()) != 0)
65 assert(PyErr_Occurred());
71 - if(PyTuple_SET_ITEM(args.get(), 0, ok ? incTrue() : incFalse()) < 0)
72 + if(PyTuple_SET_ITEM(args.get(), 0, ok ? incTrue() : incFalse()) != 0)
74 assert(PyErr_Occurred());
77 memcpy(buf, results.first, sz);
80 - if(PyTuple_SET_ITEM(args.get(), 1, op.get()) < 0)
81 + if(PyTuple_SET_ITEM(args.get(), 1, op.get()) != 0)
83 assert(PyErr_Occurred());
89 - if(PyTuple_SET_ITEM(args.get(), info->pos + offset, Unset) < 0)
90 + if(PyTuple_SET_ITEM(args.get(), info->pos + offset, Unset) != 0)
92 throwPythonException();
95 // Create an object to represent Ice::Current. We need to append this to the argument tuple.
97 PyObjectHandle curr = createCurrent(current);
98 - if(PyTuple_SET_ITEM(args.get(), PyTuple_GET_SIZE(args.get()) - 1, curr.get()) < 0)
99 + if(PyTuple_SET_ITEM(args.get(), PyTuple_GET_SIZE(args.get()) - 1, curr.get()) != 0)
101 throwPythonException();
103 @@ -3347,7 +3347,7 @@
105 obj->upcall = new UpcallPtr(this);
106 obj->encoding = current.encoding;
107 - if(PyTuple_SET_ITEM(args.get(), 0, (PyObject*)obj) < 0) // PyTuple_SET_ITEM steals a reference.
108 + if(PyTuple_SET_ITEM(args.get(), 0, (PyObject*)obj) != 0) // PyTuple_SET_ITEM steals a reference.
111 throwPythonException();
112 @@ -3698,7 +3698,7 @@
116 - if(PyTuple_SET_ITEM(args.get(), start, ip.get()) < 0)
117 + if(PyTuple_SET_ITEM(args.get(), start, ip.get()) != 0)
119 throwPythonException();
121 @@ -3710,7 +3710,7 @@
122 // this to the argument tuple.
124 PyObjectHandle curr = createCurrent(current);
125 - if(PyTuple_SET_ITEM(args.get(), start, curr.get()) < 0)
126 + if(PyTuple_SET_ITEM(args.get(), start, curr.get()) != 0)
128 throwPythonException();
130 @@ -3730,7 +3730,7 @@
132 obj->upcall = new UpcallPtr(this);
133 obj->encoding = current.encoding;
134 - if(PyTuple_SET_ITEM(args.get(), 0, (PyObject*)obj) < 0) // PyTuple_SET_ITEM steals a reference.
135 + if(PyTuple_SET_ITEM(args.get(), 0, (PyObject*)obj) != 0) // PyTuple_SET_ITEM steals a reference.
138 throwPythonException();