Fix -Wconversion warning

This commit is contained in:
Even Rouault 2017-08-17 19:05:29 +02:00
parent fd8448ed44
commit 17ea17f487
1 changed files with 1 additions and 1 deletions

View File

@ -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