Fix unary minus operator applied to unsigned int

Applying unary minus operator to unsigned int causes the following error on MSVS: error C4146
This patch fixes the error.
This commit is contained in:
Daeren 2019-12-11 13:44:15 +03:00 committed by Behdad Esfahbod
parent a061e47fcc
commit 1770493cf5
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ struct SmallGlyphMetrics
extents->x_bearing = font->em_scale_x (bearingX);
extents->y_bearing = font->em_scale_y (bearingY);
extents->width = font->em_scale_x (width);
extents->height = font->em_scale_y (-height);
extents->height = font->em_scale_y (-static_cast<int>(height));
}
HBUINT8 height;