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:05 +03:00 committed by Behdad Esfahbod
parent 1770493cf5
commit 4ef597e170
1 changed files with 1 additions and 1 deletions

View File

@ -237,7 +237,7 @@ struct sbix
extents->x_bearing = x_offset;
extents->y_bearing = png.IHDR.height + y_offset;
extents->width = png.IHDR.width;
extents->height = -png.IHDR.height;
extents->height = -static_cast<int>(png.IHDR.height);
/* Convert to font units. */
if (strike_ppem)