From 371051c8705d131043786a82bcb517f3e2dd2369 Mon Sep 17 00:00:00 2001 From: Dirk Lemstra Date: Tue, 26 Dec 2017 19:35:10 +0100 Subject: [PATCH] Fixed invalid typecast. --- coders/psd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/coders/psd.c b/coders/psd.c index add84eea8..94b38fd0d 100644 --- a/coders/psd.c +++ b/coders/psd.c @@ -2358,7 +2358,7 @@ static inline ssize_t SetPSDOffset(const PSDInfo *psd_info,Image *image, { if (psd_info->version == 1) return(WriteBlobMSBShort(image,(unsigned short) offset)); - return(WriteBlobMSBLong(image,(unsigned short) offset)); + return(WriteBlobMSBLong(image,(unsigned int) offset)); } static inline ssize_t WritePSDOffset(const PSDInfo *psd_info,Image *image, @@ -2375,7 +2375,7 @@ static inline ssize_t WritePSDOffset(const PSDInfo *psd_info,Image *image, if (psd_info->version == 1) result=WriteBlobMSBShort(image,(unsigned short) size); else - result=(WriteBlobMSBLong(image,(unsigned short) size)); + result=WriteBlobMSBLong(image,(unsigned int) size); SeekBlob(image,current_offset,SEEK_SET); return(result); } -- 2.40.0