[PATCH] 0033808: Coding - FreeType Use unsigned point and contour indexing in `FT_Out...
authordpasukhi <dpasukhi@opencascade.com>
Wed, 2 Oct 2024 20:00:00 +0000 (22:00 +0200)
committerSantiago Vila <sanvila@debian.org>
Wed, 2 Oct 2024 20:00:00 +0000 (22:00 +0200)
Bug-Debian: https://bugs.debian.org/1083127

Changes to auto instead of specific type

Gbp-Pq: Name 0013-use-auto-instead-of-specific-type.patch

src/StdPrs/StdPrs_BRepFont.cxx

index ab2d9b3c9f56a44fda6cf0ee1b83bdc90bd8944a..cd701879b16cc2ddc67624c50a17c0ed21ff64c7 100644 (file)
@@ -457,7 +457,7 @@ Standard_Boolean StdPrs_BRepFont::renderGlyph (const Standard_Utf32Char theChar,
   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;