diff --git a/cad/opencascade740/Makefile b/cad/opencascade740/Makefile index 1113b8b38be1..a5cf3b6e41d8 100644 --- a/cad/opencascade740/Makefile +++ b/cad/opencascade740/Makefile @@ -1,6 +1,6 @@ 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 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= cad science PKGNAMESUFFIX= 740 diff --git a/cad/opencascade740/files/patch-src_Font_Font__BRepFont.cxx b/cad/opencascade740/files/patch-src_Font_Font__BRepFont.cxx new file mode 100644 index 000000000000..8e6a7047eb8d --- /dev/null +++ b/cad/opencascade740/files/patch-src_Font_Font__BRepFont.cxx @@ -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;