From 5e59ab63356c4c1d1575e7b0748c913b5a59bbf5 Mon Sep 17 00:00:00 2001 From: Tavmjong Bah Date: Mon, 6 May 2019 13:43:14 +0200 Subject: Possibly fix build on Windows. --- src/libnrtype/OpenTypeUtil.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libnrtype') diff --git a/src/libnrtype/OpenTypeUtil.cpp b/src/libnrtype/OpenTypeUtil.cpp index eb2c22256..185d11004 100644 --- a/src/libnrtype/OpenTypeUtil.cpp +++ b/src/libnrtype/OpenTypeUtil.cpp @@ -371,11 +371,11 @@ void readOpenTypeSVGTable(const FT_Face ft_face, // << " Offset: " << offsetGlyph << " Length: " << lengthGlyph << std::endl; std::string svg; - for (unsigned c = offsetGlyph; c < offsetGlyph + lengthGlyph; ++c) { + for (unsigned int c = offsetGlyph; c < offsetGlyph + lengthGlyph; ++c) { svg += (char) data[offset + c]; } - for (uint i = startGlyphID; i < endGlyphID+1; ++i) { + for (unsigned int i = startGlyphID; i < endGlyphID+1; ++i) { glyphs[i].svg = svg; } -- cgit v1.2.3