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:
parent
1770493cf5
commit
4ef597e170
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue