projects/guix·blob python-team · refs

50 lines · 1.7 KiB

1From d546aefd73dcbb0d0d1e0f3c916770d7f9f98169 Mon Sep 17 00:00:00 2001
2From: Joseph C Wang <[email protected]>
3Date: Tue, 8 Oct 2024 19:47:53 +0800
4Subject: [PATCH] fix type error
5
6---
7 src/FTContour.cpp | 2 +-
8 src/FTContour.h | 2 +-
9 src/FTVectoriser.cpp | 2 +-
10 3 files changed, 3 insertions(+), 3 deletions(-)
11
12diff --git a/src/FTContour.cpp b/src/FTContour.cpp
13index c668d32..ef13576 100644
14--- a/src/FTContour.cpp
15+++ b/src/FTContour.cpp
16@@ -174,7 +174,7 @@ void FTContour::SetParity(int parity)
17 }
18
19
20-FTContour::FTContour(FT_Vector* contour, char* tags, unsigned int n)
21+FTContour::FTContour(FT_Vector* contour, unsigned char* tags, unsigned int n)
22 {
23 FTPoint prev, cur(contour[(n - 1) % n]), next(contour[0]);
24 double olddir, dir = atan2((next - cur).Y(), (next - cur).X());
25diff --git a/src/FTContour.h b/src/FTContour.h
26index d2d187c..dc64e3a 100644
27--- a/src/FTContour.h
28+++ b/src/FTContour.h
29@@ -52,7 +52,7 @@ class FTContour
30 * @param pointTags
31 * @param numberOfPoints
32 */
33- FTContour(FT_Vector* contour, char* pointTags, unsigned int numberOfPoints);
34+ FTContour(FT_Vector* contour, unsigned char* pointTags, unsigned int numberOfPoints);
35
36 /**
37 * Destructor
38diff --git a/src/FTVectoriser.cpp b/src/FTVectoriser.cpp
39index 26e7da8..53d738e 100644
40--- a/src/FTVectoriser.cpp
41+++ b/src/FTVectoriser.cpp
42@@ -168,7 +168,7 @@ void FTVectoriser::ProcessContours()
43 for(int i = 0; i < ftContourCount; ++i)
44 {
45 FT_Vector* pointList = &outline.points[startIndex];
46- char* tagList = &outline.tags[startIndex];
47+ unsigned char* tagList = &outline.tags[startIndex];
48
49 endIndex = outline.contours[i];
50 contourLength = (endIndex - startIndex) + 1;