Skip to content

Commit

Permalink
Remove incompatible 'register' keyword from AGG source
Browse files Browse the repository at this point in the history
  • Loading branch information
djhoese committed Oct 12, 2023
1 parent d25d17b commit 157ed49
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions agg2/include/agg_trans_affine.h
Original file line number Diff line number Diff line change
Expand Up @@ -251,17 +251,17 @@ namespace agg
//------------------------------------------------------------------------
inline void trans_affine::transform(double* x, double* y) const
{
register double tx = *x;
double tx = *x;
*x = tx * m0 + *y * m2 + m4;
*y = tx * m1 + *y * m3 + m5;
}

//------------------------------------------------------------------------
inline void trans_affine::inverse_transform(double* x, double* y) const
{
register double d = determinant();
register double a = (*x - m4) * d;
register double b = (*y - m5) * d;
double d = determinant();
double a = (*x - m4) * d;
double b = (*y - m5) * d;
*x = a * m3 - b * m2;
*y = b * m0 - a * m1;
}
Expand Down

0 comments on commit 157ed49

Please sign in to comment.