| 1 | From d546aefd73dcbb0d0d1e0f3c916770d7f9f98169 Mon Sep 17 00:00:00 2001
|
| 2 | From: Joseph C Wang <[email protected]>
|
| 3 | Date: Tue, 8 Oct 2024 19:47:53 +0800
|
| 4 | Subject: [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 |
|
| 12 | diff --git a/src/FTContour.cpp b/src/FTContour.cpp
|
| 13 | index c668d32..ef13576 100644
|
| 14 | |
| 15 | |
| 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());
|
| 25 | diff --git a/src/FTContour.h b/src/FTContour.h
|
| 26 | index d2d187c..dc64e3a 100644
|
| 27 | |
| 28 | |
| 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
|
| 38 | diff --git a/src/FTVectoriser.cpp b/src/FTVectoriser.cpp
|
| 39 | index 26e7da8..53d738e 100644
|
| 40 | |
| 41 | |
| 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;
|