From 1770493cf5e0c098a0566281bc1dd089101f0f78 Mon Sep 17 00:00:00 2001 From: Daeren Date: Wed, 11 Dec 2019 13:44:15 +0300 Subject: [PATCH] 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. --- src/hb-ot-color-cbdt-table.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-ot-color-cbdt-table.hh b/src/hb-ot-color-cbdt-table.hh index 3498d3b36..0914b5781 100644 --- a/src/hb-ot-color-cbdt-table.hh +++ b/src/hb-ot-color-cbdt-table.hh @@ -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(height)); } HBUINT8 height;