From 23a797b44365ed76fc7db25be13bd9c3580a8695 Mon Sep 17 00:00:00 2001 From: Michiharu Ariza Date: Fri, 30 Nov 2018 15:15:31 -0800 Subject: [PATCH] silence picky gcc errors --- src/hb-ot-cff1-table.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hb-ot-cff1-table.hh b/src/hb-ot-cff1-table.hh index 902d9727a..4e76c4217 100644 --- a/src/hb-ot-cff1-table.hh +++ b/src/hb-ot-cff1-table.hh @@ -1028,7 +1028,7 @@ struct cff1 { fini (); return; } { /* parse top dict */ - const ByteStr topDictStr = (*topDictIndex)[0]; + const ByteStr topDictStr = (*topDictIndex)[static_cast(0)]; if (unlikely (!topDictStr.sanitize (&sc))) { fini (); return; } CFF1TopDict_Interpreter top_interp; top_interp.env.init (topDictStr); @@ -1112,7 +1112,7 @@ struct cff1 else /* non-CID */ { CFF1TopDictValues *font = &topDict; - PRIVDICTVAL *priv = &privateDicts[0]; + PRIVDICTVAL *priv = &privateDicts[static_cast(0)]; const ByteStr privDictStr (StructAtOffset (cff, font->privateDictInfo.offset), font->privateDictInfo.size); if (unlikely (!privDictStr.sanitize (&sc))) { fini (); return; }