Skip to content

Commit d8fd5da

Browse files
committed
casting
1 parent 00ed262 commit d8fd5da

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

libs/openFrameworks/graphics/ofTrueTypeFont.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1000,7 +1000,7 @@ void ofTrueTypeFont::drawChar(uint32_t c, float x, float y, bool vFlipped) const
10001000
ymin += y;
10011001
ymax += y;
10021002

1003-
auto firstIndex { (ofIndexType)stringQuads.getVertices().size() };
1003+
auto firstIndex { static_cast<ofIndexType>(stringQuads.getVertices().size()) };
10041004

10051005
stringQuads.addVertices({
10061006
{ xmin, ymin, 0.f },
@@ -1018,10 +1018,10 @@ void ofTrueTypeFont::drawChar(uint32_t c, float x, float y, bool vFlipped) const
10181018

10191019
stringQuads.addIndices({
10201020
firstIndex,
1021-
firstIndex + 1U,
1022-
firstIndex + 2U,
1023-
firstIndex + 2U,
1024-
firstIndex + 3U,
1021+
static_cast<ofIndexType>(firstIndex + 1U),
1022+
static_cast<ofIndexType>(firstIndex + 2U),
1023+
static_cast<ofIndexType>(firstIndex + 2U),
1024+
static_cast<ofIndexType>(firstIndex + 3U),
10251025
firstIndex
10261026
});
10271027
}

0 commit comments

Comments
 (0)