From: dpasukhi Date: Wed, 2 Oct 2024 20:00:00 +0000 (+0200) Subject: [PATCH] 0033808: Coding - FreeType Use unsigned point and contour indexing in `FT_Out... X-Git-Tag: archive/raspbian/7.8.1+dfsg1-3+rpi1^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=acb29cff7ca40eb83f22f44d8783f38dfa039951;p=opencascade.git [PATCH] 0033808: Coding - FreeType Use unsigned point and contour indexing in `FT_Outline` 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 --- diff --git a/src/StdPrs/StdPrs_BRepFont.cxx b/src/StdPrs/StdPrs_BRepFont.cxx index ab2d9b3c9..cd701879b 100644 --- a/src/StdPrs/StdPrs_BRepFont.cxx +++ b/src/StdPrs/StdPrs_BRepFont.cxx @@ -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;