diff --git a/src/_imagingft.c b/src/_imagingft.c index 5d91eaad6c3..06ef6e810e6 100644 --- a/src/_imagingft.c +++ b/src/_imagingft.c @@ -580,9 +580,9 @@ bounding_box_and_anchors( int *x_offset, int *y_offset ) { - int position; /* pen position along primary axis, in 26.6 precision */ - int advanced; /* pen position along primary axis, in pixels */ - int px, py; /* position of current glyph, in pixels */ + long position; /* pen position along primary axis, in 26.6 precision */ + long advanced; /* pen position along primary axis, in pixels */ + int px, py; /* position of current glyph, in pixels */ int x_min, x_max, y_min, y_max; /* text bounding box, in pixels */ int x_anchor, y_anchor; /* offset of point drawn at (0, 0), in pixels */ int error;