From f0605896bc5b6091351d9e1d359a3d61d5ee5d18 Mon Sep 17 00:00:00 2001 From: cristy Date: Tue, 6 Sep 2011 14:56:46 +0000 Subject: [PATCH] --- coders/cin.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/coders/cin.c b/coders/cin.c index cb3b841f3..3fd45fee1 100644 --- a/coders/cin.c +++ b/coders/cin.c @@ -616,20 +616,26 @@ static Image *ReadCINImage(const ImageInfo *image_info,ExceptionInfo *exception) cin.origination.reserve); if ((cin.file.image_offset > 2048) && (cin.file.user_length != 0)) { + int + c; + /* Image film information. */ cin.film.id=ReadBlobByte(image); offset++; - if (((size_t) cin.film.id) != ~0UL) + c=cin.film.id; + if (c != ~0U) (void) FormatImageProperty(image,"dpx:film.id","%d",cin.film.id); cin.film.type=ReadBlobByte(image); offset++; - if (((size_t) cin.film.type) != ~0UL) + c=cin.film.type; + if (c != ~0U) (void) FormatImageProperty(image,"dpx:film.type","%d",cin.film.type); cin.film.offset=ReadBlobByte(image); offset++; - if (((size_t) cin.film.offset) != ~0UL) + c=cin.film.offset; + if (c != ~0U) (void) FormatImageProperty(image,"dpx:film.offset","%d", cin.film.offset); cin.film.reserve1=ReadBlobByte(image); -- 2.40.0