Skip to content

Commit

Permalink
Switch to casting patch for tags pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
djhoese committed Sep 11, 2024
1 parent c7d8c51 commit bd41e52
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions agg2/font_freetype/agg_font_freetype.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ namespace agg

FT_Vector* point;
FT_Vector* limit;
unsigned char* tags;
char* tags;

int n; // index of contour in outline
int first; // index of first point in contour
Expand All @@ -171,7 +171,7 @@ namespace agg
v_control = v_start;

point = outline.points + first;
tags = outline.tags + first;
tags = (char *)outline.tags + first;
tag = FT_CURVE_TAG(tags[0]);

// A contour cannot start with a cubic control point!
Expand Down
16 changes: 8 additions & 8 deletions patches/tags_pointer_type_fix.patch
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
--- agg2/font_freetype/agg_font_freetype.cpp.orig 2024-03-06 10:16:58
+++ agg2/font_freetype/agg_font_freetype.cpp 2024-09-11 09:17:23
@@ -150,7 +150,7 @@
+++ agg2/font_freetype/agg_font_freetype.cpp 2024-09-10 21:13:37
@@ -171,7 +171,7 @@
v_control = v_start;

FT_Vector* point;
FT_Vector* limit;
- char* tags;
+ unsigned char* tags;
point = outline.points + first;
- tags = outline.tags + first;
+ tags = (char *)outline.tags + first;
tag = FT_CURVE_TAG(tags[0]);

int n; // index of contour in outline
int first; // index of first point in contour
// A contour cannot start with a cubic control point!

0 comments on commit bd41e52

Please sign in to comment.