Skip to content

Commit

Permalink
Use the same typecast as in ImageMagick 7.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlemstra committed Jun 20, 2021
1 parent 086c8ee commit d02e016
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coders/tga.c
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ static Image *ReadTGAImage(const ImageInfo *image_info,ExceptionInfo *exception)
pixel.opacity=(k & 0x80) == 0 ? (Quantum) TransparentOpacity :
(Quantum) OpaqueOpacity;
if (image->storage_class == PseudoClass)
index=ConstrainColormapIndex(image,(ssize_t) ((size_t) k << 8)+j);
index=ConstrainColormapIndex(image,((ssize_t) k << 8)+j);
break;
}
case 24:
Expand Down

0 comments on commit d02e016

Please sign in to comment.