# HG changeset patch # User michi_cc # Date 2013-08-05 20:50:55 # Node ID c9f76dcb9f8492c6cd51dc3f251adcd8959f0af2 # Parent 3309c8d19a22fb5c1f01a74a47989b854431a51d (svn r25694) -Fix (r25651): Picky GCC. diff --git a/src/gfx_layout.cpp b/src/gfx_layout.cpp --- a/src/gfx_layout.cpp +++ b/src/gfx_layout.cpp @@ -554,7 +554,7 @@ Point Layouter::GetCharPosition(const ch for (int i = 0; i < run->getGlyphCount(); i++) { /* Matching glyph? Return position. */ if ((size_t)run->getGlyphToCharMap()[i] == index) { - Point p = { run->getPositions()[i * 2], run->getPositions()[i * 2 + 1] }; + Point p = { (int)run->getPositions()[i * 2], (int)run->getPositions()[i * 2 + 1] }; return p; } }