@@ -105,10 +105,10 @@ _wrap_atk_rectangle_getitem(PyGBoxed *self, Py_ssize_t pos)
105
105
}
106
106
rect = pyg_boxed_get (self , AtkRectangle );
107
107
switch (pos ) {
108
- case 0 : return PyInt_FromLong (rect -> x );
109
- case 1 : return PyInt_FromLong (rect -> y );
110
- case 2 : return PyInt_FromLong (rect -> width );
111
- case 3 : return PyInt_FromLong (rect -> height );
108
+ case 0 : return PyLong_FromLong (rect -> x );
109
+ case 1 : return PyLong_FromLong (rect -> y );
110
+ case 2 : return PyLong_FromLong (rect -> width );
111
+ case 3 : return PyLong_FromLong (rect -> height );
112
112
default :
113
113
g_assert_not_reached ();
114
114
return NULL ;
@@ -126,7 +126,7 @@ _wrap_atk_rectangle_setitem(PyGBoxed *self, Py_ssize_t pos, PyObject *value)
126
126
return -1 ;
127
127
}
128
128
rect = pyg_boxed_get (self , AtkRectangle );
129
- val = PyInt_AsLong (value );
129
+ val = PyLong_AsLong (value );
130
130
if (PyErr_Occurred ())
131
131
return -1 ;
132
132
switch (pos ) {
@@ -158,7 +158,7 @@ _wrap_atk_rectangle__set_x(PyGBoxed *self, PyObject *value, void *closure)
158
158
{
159
159
gint val ;
160
160
161
- val = PyInt_AsLong (value );
161
+ val = PyLong_AsLong (value );
162
162
if (PyErr_Occurred ())
163
163
return -1 ;
164
164
pyg_boxed_get (self , AtkRectangle )-> x = val ;
@@ -171,7 +171,7 @@ _wrap_atk_rectangle__set_y(PyGBoxed *self, PyObject *value, void *closure)
171
171
{
172
172
gint val ;
173
173
174
- val = PyInt_AsLong (value );
174
+ val = PyLong_AsLong (value );
175
175
if (PyErr_Occurred ())
176
176
return -1 ;
177
177
pyg_boxed_get (self , AtkRectangle )-> y = val ;
@@ -184,7 +184,7 @@ _wrap_atk_rectangle__set_width(PyGBoxed *self, PyObject *value, void *closure)
184
184
{
185
185
gint val ;
186
186
187
- val = PyInt_AsLong (value );
187
+ val = PyLong_AsLong (value );
188
188
if (PyErr_Occurred ())
189
189
return -1 ;
190
190
pyg_boxed_get (self , AtkRectangle )-> width = val ;
@@ -197,7 +197,7 @@ _wrap_atk_rectangle__set_height(PyGBoxed *self, PyObject *value, void *closure)
197
197
{
198
198
gint val ;
199
199
200
- val = PyInt_AsLong (value );
200
+ val = PyLong_AsLong (value );
201
201
if (PyErr_Occurred ())
202
202
return -1 ;
203
203
pyg_boxed_get (self , AtkRectangle )-> height = val ;
0 commit comments