Commit ac90257c1 for imagemagick.org
commit ac90257c1b9f8384f34e145ee00f7d1215d0aeaa
Author: Cristy <urban-warrior@imagemagick.org>
Date: Fri Nov 13 19:03:23 2026 -0500
cosmetic
diff --git a/coders/tim.c b/coders/tim.c
index 0b04dc47e..b299b7814 100644
--- a/coders/tim.c
+++ b/coders/tim.c
@@ -96,9 +96,6 @@ static Image *ReadTIMImage(const ImageInfo *image_info,ExceptionInfo *exception)
flag;
} TIMInfo;
- TIMInfo
- tim_info;
-
Image
*image;
@@ -109,18 +106,9 @@ static Image *ReadTIMImage(const ImageInfo *image_info,ExceptionInfo *exception)
MagickBooleanType
status;
- ssize_t
- x;
-
Quantum
*q;
- ssize_t
- i;
-
- unsigned char
- *p;
-
size_t
bytes_per_line,
height,
@@ -130,9 +118,15 @@ static Image *ReadTIMImage(const ImageInfo *image_info,ExceptionInfo *exception)
ssize_t
count,
+ i,
+ x,
y;
+ TIMInfo
+ tim_info;
+
unsigned char
+ *p,
*tim_pixels;
unsigned short
@@ -178,7 +172,7 @@ static Image *ReadTIMImage(const ImageInfo *image_info,ExceptionInfo *exception)
default: bits_per_pixel=4; break;
}
image->depth=8;
- if (has_clut)
+ if (has_clut != 0)
{
unsigned char
*tim_colormap;
@@ -186,9 +180,9 @@ static Image *ReadTIMImage(const ImageInfo *image_info,ExceptionInfo *exception)
/*
Read TIM raster colormap.
*/
- (void)ReadBlobLSBLong(image);
- (void)ReadBlobLSBShort(image);
- (void)ReadBlobLSBShort(image);
+ (void) ReadBlobLSBLong(image);
+ (void) ReadBlobLSBShort(image);
+ (void) ReadBlobLSBShort(image);
width=ReadBlobLSBShort(image);
height=ReadBlobLSBShort(image);
image->columns=width;