Fix build failure.

The lack of this pair of parens triggered a compiler warning, which
turned into an error at -Werror. Oops - I thought I'd folded that fix
in before pushing Franklin's series.
This commit is contained in:
Simon Tatham
2024-08-15 20:45:34 +01:00
parent f81838f509
commit 262f709e02

View File

@ -94,7 +94,7 @@ void draw_polygon_fallback(drawing *dr, const int *coords, int npoints,
if(y1 > max_y)
max_y = y1;
#define COORD_LIMIT (1<<sizeof(int)*CHAR_BIT-2 - FRACBITS)
#define COORD_LIMIT (1<<(sizeof(int)*CHAR_BIT-2 - FRACBITS))
/* Prevent integer overflow when computing `inverse_slope',
* which shifts the coordinates left by FRACBITS, and for
* which we'd like to avoid relying on `long long'. */