opencascade-7.8.1-freetype-const.patch 1.0 KB

12345678910111213141516171819202122
  1. https://bugs.gentoo.org/939996
  2. https://github.com/Open-Cascade-SAS/OCCT/commit/7236e83dcc1e7284e66dc61e612154617ef715d6
  3. From 7236e83dcc1e7284e66dc61e612154617ef715d6 Mon Sep 17 00:00:00 2001
  4. From: dpasukhi <dpasukhi@opencascade.com>
  5. Date: Tue, 27 Aug 2024 11:33:29 +0100
  6. Subject: [PATCH] 0033808: Coding - FreeType Use unsigned point and contour
  7. indexing in `FT_Outline`
  8. Changes to auto instead of specific type
  9. --- a/src/StdPrs/StdPrs_BRepFont.cxx
  10. +++ b/src/StdPrs/StdPrs_BRepFont.cxx
  11. @@ -457,7 +457,7 @@ Standard_Boolean StdPrs_BRepFont::renderGlyph (const Standard_Utf32Char theChar,
  12. for (short aContour = 0, aStartIndex = 0; aContour < anOutline->n_contours; ++aContour)
  13. {
  14. const FT_Vector* aPntList = &anOutline->points[aStartIndex];
  15. - const char* aTags = &anOutline->tags[aStartIndex];
  16. + const auto* aTags = &anOutline->tags[aStartIndex];
  17. const short anEndIndex = anOutline->contours[aContour];
  18. const short aPntsNb = (anEndIndex - aStartIndex) + 1;
  19. aStartIndex = anEndIndex + 1;