From 3e6c553104a29840ba23379ab2dceaca44ac9e79 Mon Sep 17 00:00:00 2001 From: Cristy Date: Sat, 14 May 2016 20:17:23 -0400 Subject: [PATCH] ... --- coders/dib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/coders/dib.c b/coders/dib.c index af84e6d2e..cc4dd3af9 100644 --- a/coders/dib.c +++ b/coders/dib.c @@ -502,8 +502,8 @@ static Image *ReadDIBImage(const ImageInfo *image_info,ExceptionInfo *exception) /* Microsoft Windows 3.X DIB image file. */ - dib_info.width=(short) ReadBlobLSBLong(image); - dib_info.height=(short) ReadBlobLSBLong(image); + dib_info.width=ReadBlobLSBSignedLong(image); + dib_info.height=ReadBlobLSBSignedLong(image); dib_info.planes=ReadBlobLSBShort(image); dib_info.bits_per_pixel=ReadBlobLSBShort(image); if (dib_info.bits_per_pixel > 32) -- 2.40.0