diff options
author | Mike Frysinger <vapier@gentoo.org> | 2016-01-11 00:02:05 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2016-01-11 00:02:05 -0500 |
commit | 6913dd3cd2a7c2914ad9622419f9343bfe956135 (patch) | |
tree | 0c45ed3de306d7f52cc74a415445eec715085122 /src/gd_bmp.c | |
parent | f29f7db59e1d4d1437e8f19e1917241a35336639 (diff) | |
download | libgd-6913dd3cd2a7c2914ad9622419f9343bfe956135.tar.gz |
bmp: use double variant of ceil func
We use ceill and ceil in this code, but it's not clear we need the long
double variant of ceill here. The input multiply is already done with
double precision (the 0.1 literal is a double), and not all C libraries
offer long double variants. Change to ceil and see if anyone notices.
Closes issue #123.
Diffstat (limited to 'src/gd_bmp.c')
-rw-r--r-- | src/gd_bmp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gd_bmp.c b/src/gd_bmp.c index 0fc0219..5f39b67 100644 --- a/src/gd_bmp.c +++ b/src/gd_bmp.c @@ -792,7 +792,7 @@ static int bmp_read_1bit(gdImagePtr im, gdIOCtxPtr infile, bmp_info_t *info, bmp } /* The line must be divisible by 4, else its padded with NULLs */ - padding = ((int)ceill(0.1 * info->width)) % 4; + padding = ((int)ceil(0.1 * info->width)) % 4; if (padding) { padding = 4 - padding; } |