Skip to content

Commit

Permalink
Another false positive workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
wch committed Jul 19, 2021
1 parent e43996c commit 2e74f5a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 4 additions & 3 deletions src/ttf2pt1/pt1.c
Original file line number Diff line number Diff line change
Expand Up @@ -4937,7 +4937,8 @@ fcrossraysge(
GENTRY *ge2,
double *max1,
double *max2,
double crossdot[2][2]
double** crossdot
// double crossdot[2][2]
)
{
ray[0].x1 = ge1->prev->fx3;
Expand All @@ -4957,7 +4958,7 @@ fcrossraysge(
}
ray[1].maxp = max2;

return fcrossraysxx(crossdot);
return fcrossraysxx((double (*)[2])crossdot);
}

/* debugging printout functions */
Expand Down Expand Up @@ -6047,7 +6048,7 @@ fconcisecontour(

fnormalizege(&tpge);
fnormalizege(&tnge);
if( fcrossraysge(&tpge, &tnge, NULL, NULL, &apcv[1]) ) {
if( fcrossraysge(&tpge, &tnge, NULL, NULL, (double**)&apcv[1]) ) {
apcv[0][X] = tpge.bkwd->fx3;
apcv[0][Y] = tpge.bkwd->fy3;
/* apcv[1] and apcv[2] were filled by fcrossraysge() */
Expand Down
4 changes: 3 additions & 1 deletion src/ttf2pt1/pt1.h
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,10 @@ void addkernpair( unsigned id1, unsigned id2, int unscval);
void print_kerning( FILE *afm_file);

int fcrossrayscv( double curve[4][2], double *max1, double *max2);
// int fcrossraysge( GENTRY *ge1, GENTRY *ge2, double *max1, double *max2,
// double crossdot[2][2]);
int fcrossraysge( GENTRY *ge1, GENTRY *ge2, double *max1, double *max2,
double crossdot[2][2]);
double** crossdot);
// double fdotsegdist2( double seg[2][2], double dot[2]);
double fdotsegdist2( double** seg, double dot[2]);
double fdotcurvdist2( double curve[4][2], struct dot_dist *dots, int ndots, double *maxp);
Expand Down

0 comments on commit 2e74f5a

Please sign in to comment.