diff --git a/src/truetype/ttgload.c b/src/truetype/ttgload.c index b189f982f..23c645f09 100644 --- a/src/truetype/ttgload.c +++ b/src/truetype/ttgload.c @@ -1228,8 +1228,8 @@ p1 = gloader->base.outline.points + k; p2 = gloader->base.outline.points + l; - x = p1->x - p2->x; - y = p1->y - p2->y; + x = SUB_LONG(p1->x, p2->x); + y = SUB_LONG(p1->y, p2->y); } else {