From 4ef597e17003402c0ceebcb5a0c185f08c97aac1 Mon Sep 17 00:00:00 2001 From: Daeren Date: Wed, 11 Dec 2019 13:44:05 +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-sbix-table.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-ot-color-sbix-table.hh b/src/hb-ot-color-sbix-table.hh index 35d3fd510..453e5ec78 100644 --- a/src/hb-ot-color-sbix-table.hh +++ b/src/hb-ot-color-sbix-table.hh @@ -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(png.IHDR.height); /* Convert to font units. */ if (strike_ppem)