forked from e16/e16
1
0
Fork 0

arrange: Fix C++ build

This commit is contained in:
Kim Woelders 2022-04-23 13:07:38 +02:00
parent f812edf7fe
commit 5f23c8fce9
1 changed files with 4 additions and 4 deletions

View File

@ -284,8 +284,8 @@ ArrangeFindSpaces(const int *xarray, int xsize, const int *yarray, int ysize,
static int
_rects_sort_size(const void *_a, const void *_b)
{
const RectBox *a = _a;
const RectBox *b = _b;
const RectBox *a = (const RectBox *)_a;
const RectBox *b = (const RectBox *)_b;
return (b->w * b->h) - (a->h * a->w);
}
@ -294,8 +294,8 @@ _rects_sort_size(const void *_a, const void *_b)
static int
_rects_sort_pos(const void *_a, const void *_b)
{
const RectBox *a = _a;
const RectBox *b = _b;
const RectBox *a = (const RectBox *)_a;
const RectBox *b = (const RectBox *)_b;
return (b->x + b->w / 2 + b->y + b->h / 2) - (a->x - a->y);
}