Add 'const' to the draw_polygon coords array parameter.

Thanks to Mouse for spotting that it was missing.
This commit is contained in:
Simon Tatham
2021-09-13 11:04:59 +01:00
parent d204978391
commit 88358f0643
8 changed files with 12 additions and 12 deletions

2
osx.m
View File

@ -1344,7 +1344,7 @@ struct frontend {
/*
* Drawing routines called by the midend.
*/
static void osx_draw_polygon(void *handle, int *coords, int npoints,
static void osx_draw_polygon(void *handle, const int *coords, int npoints,
int fillcolour, int outlinecolour)
{
frontend *fe = (frontend *)handle;