cad/opencascade740: Fix build with with freetype2 2.13.3

Apply same fix as for cad/opencascade

PR:		281316
Approved by:	portmgr (blanket, build fix)
This commit is contained in:
Daniel Engberg 2024-09-24 21:02:34 +02:00
parent a99e5ef3a8
commit a0ddecafac
2 changed files with 12 additions and 1 deletions

View file

@ -1,6 +1,6 @@
PORTNAME= opencascade PORTNAME= opencascade
PORTVERSION= 7.4.0 # resurrected because science/chrono only builds with opencascade-7.4.0, see https://github.com/projectchrono/chrono/issues/359#issuecomment-1023478083 PORTVERSION= 7.4.0 # resurrected because science/chrono only builds with opencascade-7.4.0, see https://github.com/projectchrono/chrono/issues/359#issuecomment-1023478083
PORTREVISION= 3 PORTREVISION= 4
CATEGORIES= cad science CATEGORIES= cad science
PKGNAMESUFFIX= 740 PKGNAMESUFFIX= 740

View file

@ -0,0 +1,11 @@
--- src/Font/Font_BRepFont.cxx.orig 2024-09-24 18:34:32 UTC
+++ src/Font/Font_BRepFont.cxx
@@ -430,7 +430,7 @@ Standard_Boolean Font_BRepFont::renderGlyph (const Sta
for (short aContour = 0, aStartIndex = 0; aContour < anOutline.n_contours; ++aContour)
{
const FT_Vector* aPntList = &anOutline.points[aStartIndex];
- const char* aTags = &anOutline.tags[aStartIndex];
+ const auto* aTags = &anOutline.tags[aStartIndex];
const short anEndIndex = anOutline.contours[aContour];
const short aPntsNb = (anEndIndex - aStartIndex) + 1;
aStartIndex = anEndIndex + 1;