diff options
-rw-r--r-- | Build/source/libs/gd/libgd-2.1.0-PATCHES/ChangeLog | 4 | ||||
-rw-r--r-- | Build/source/libs/gd/libgd-2.1.0-PATCHES/patch-03-ceill | 12 | ||||
-rw-r--r-- | Build/source/libs/gd/libgd-2.1.0/src/gd_bmp.c | 2 |
3 files changed, 17 insertions, 1 deletions
diff --git a/Build/source/libs/gd/libgd-2.1.0-PATCHES/ChangeLog b/Build/source/libs/gd/libgd-2.1.0-PATCHES/ChangeLog index fe48d5c04b2..f7dd7300e94 100644 --- a/Build/source/libs/gd/libgd-2.1.0-PATCHES/ChangeLog +++ b/Build/source/libs/gd/libgd-2.1.0-PATCHES/ChangeLog @@ -1,3 +1,7 @@ +2014-06-20 Peter Breitenlohner <peb@mppmu.mpg.de> + + * patch-03-ceill (new): Replace ceill() by ceil() as everywhere. + 2013-06-26 Peter Breitenlohner <peb@mppmu.mpg.de> Imported libgd-2.1.0 source tree from: diff --git a/Build/source/libs/gd/libgd-2.1.0-PATCHES/patch-03-ceill b/Build/source/libs/gd/libgd-2.1.0-PATCHES/patch-03-ceill new file mode 100644 index 00000000000..f8fc797d69e --- /dev/null +++ b/Build/source/libs/gd/libgd-2.1.0-PATCHES/patch-03-ceill @@ -0,0 +1,12 @@ +diff -ur libgd-2.1.0.orig/src/gd_bmp.c libgd-2.1.0/src/gd_bmp.c +--- libgd-2.1.0.orig/src/gd_bmp.c 2013-06-25 11:58:23.000000000 +0200 ++++ libgd-2.1.0/src/gd_bmp.c 2014-06-20 17:18:24.000000000 +0200 +@@ -792,7 +792,7 @@ + } + + /* 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; + } diff --git a/Build/source/libs/gd/libgd-2.1.0/src/gd_bmp.c b/Build/source/libs/gd/libgd-2.1.0/src/gd_bmp.c index 0fc021909f1..5f39b67c3e4 100644 --- a/Build/source/libs/gd/libgd-2.1.0/src/gd_bmp.c +++ b/Build/source/libs/gd/libgd-2.1.0/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; } |