diff options
-rw-r--r-- | css/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/css/utils.c b/css/utils.c index 819dadd97..11a14e174 100644 --- a/css/utils.c +++ b/css/utils.c @@ -135,7 +135,7 @@ css_fixed nscss_len2px(css_fixed length, css_unit unit, /* Ensure we round px_per_unit to the nearest whole number of pixels: * the use of FIXTOINT() below will truncate. */ - px_per_unit += FDIVI(INTTOFIX(1), 2); + px_per_unit += FLTTOFIX(0.5); /* Calculate total number of pixels */ return FMULI(length, FIXTOINT(px_per_unit)); |