diff --git a/src/bin/jp2/convert.c b/src/bin/jp2/convert.c index deb4641e..5459f7d4 100644 --- a/src/bin/jp2/convert.c +++ b/src/bin/jp2/convert.c @@ -583,7 +583,7 @@ struct tga_header { /* Returns a ushort from a little-endian serialized value */ static unsigned short get_tga_ushort(const unsigned char *data) { - return (unsigned short)data[0] | (unsigned short)(data[1] << 8); + return (unsigned short)(data[0] | (data[1] << 8)); } #define TGA_HEADER_SIZE 18