diff options
-rw-r--r-- | render/layout.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/render/layout.c b/render/layout.c index fc0f22b98..02c162b2d 100644 --- a/render/layout.c +++ b/render/layout.c @@ -59,9 +59,7 @@ #define AUTO INT_MIN /* Fixed point value percentage of an integer, to an integer */ -#define FPCT_OF_INT_TOINT(a, b) (a < 0) ? \ - (FIXTOFLT(a) * b) / 100 : \ - FIXTOINT(FDIVI(FMULI(a, b), 100)) +#define FPCT_OF_INT_TOINT(a, b) FIXTOINT(FMULI(FDIVI(a, 100), b)) static bool layout_block_context(struct box *block, int viewport_height, |