Skip to content

Commit 488c546

Browse files
committed
Modified iw/ih index pointers to be integers and avoid modifying the python->c parsing for meshWidth/meshHeight
1 parent 1583903 commit 488c546

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/_macosx.m

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1770,8 +1770,8 @@ static int _transformation_converter(PyObject* object, void* pointer)
17701770
GraphicsContext_draw_quad_mesh (GraphicsContext* self, PyObject* args)
17711771
{
17721772
CGAffineTransform master;
1773-
size_t meshWidth;
1774-
size_t meshHeight;
1773+
int meshWidth;
1774+
int meshHeight;
17751775
PyObject* coordinates;
17761776
PyArrayObject* coordinates_arr = 0;
17771777
PyObject* offsets;
@@ -1793,7 +1793,7 @@ static int _transformation_converter(PyObject* object, void* pointer)
17931793
return NULL;
17941794
}
17951795

1796-
if(!PyArg_ParseTuple(args, "O&IIOOO&OiO",
1796+
if(!PyArg_ParseTuple(args, "O&iiOOO&OiO",
17971797
_transformation_converter, &master,
17981798
&meshWidth,
17991799
&meshHeight,
@@ -1887,8 +1887,8 @@ static int _transformation_converter(PyObject* object, void* pointer)
18871887
}
18881888

18891889
size_t i = 0;
1890-
size_t iw = 0;
1891-
size_t ih = 0;
1890+
int iw = 0;
1891+
int ih = 0;
18921892

18931893
/* Preset graphics context properties if possible */
18941894
CGContextSetShouldAntialias(cr, antialiased);

0 commit comments

Comments
 (0)