mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-20 07:31:30 -07:00
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:
@ -94,7 +94,7 @@ void draw_polygon_fallback(drawing *dr, const int *coords, int npoints,
|
|||||||
if(y1 > max_y)
|
if(y1 > max_y)
|
||||||
max_y = y1;
|
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',
|
/* Prevent integer overflow when computing `inverse_slope',
|
||||||
* which shifts the coordinates left by FRACBITS, and for
|
* which shifts the coordinates left by FRACBITS, and for
|
||||||
* which we'd like to avoid relying on `long long'. */
|
* which we'd like to avoid relying on `long long'. */
|
||||||
|
Reference in New Issue
Block a user