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
a061e47fcc
commit
1770493cf5
|
@ -56,7 +56,7 @@ struct SmallGlyphMetrics
|
||||||
extents->x_bearing = font->em_scale_x (bearingX);
|
extents->x_bearing = font->em_scale_x (bearingX);
|
||||||
extents->y_bearing = font->em_scale_y (bearingY);
|
extents->y_bearing = font->em_scale_y (bearingY);
|
||||||
extents->width = font->em_scale_x (width);
|
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;
|
HBUINT8 height;
|
||||||
|
|
Loading…
Reference in New Issue