Skip to content

Commit

Permalink
outline: eliminate use of VLA
Browse files Browse the repository at this point in the history
Fixes #321.
  • Loading branch information
MrSmile committed May 19, 2019
1 parent 7307cbd commit 891ada8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libass/ass_outline.c
Expand Up @@ -552,7 +552,7 @@ static bool process_arc(StrokerState *str, ASS_Vector pt,
static bool draw_arc(StrokerState *str, ASS_Vector pt,
ASS_DVector normal0, ASS_DVector normal1, double c, int dir)
{
const int max_subdiv = 15;
enum { max_subdiv = 15 };
double mul[max_subdiv + 1];

ASS_DVector center;
Expand Down Expand Up @@ -588,7 +588,7 @@ static bool draw_arc(StrokerState *str, ASS_Vector pt,
*/
static bool draw_circle(StrokerState *str, ASS_Vector pt, int dir)
{
const int max_subdiv = 15;
enum { max_subdiv = 15 };
double mul[max_subdiv + 1], c = 0;

int pos = max_subdiv;
Expand Down

0 comments on commit 891ada8

Please sign in to comment.