Fix compiler warnings
This commit is contained in:
parent
7dfcbf9d7b
commit
ce26e523dd
@ -558,8 +558,8 @@ struct tga_header
|
||||
};
|
||||
#endif /* INFORMATION_ONLY */
|
||||
|
||||
static unsigned short get_ushort(unsigned char *data) {
|
||||
unsigned short val = *(unsigned short *)data;
|
||||
static unsigned short get_ushort(const unsigned char *data) {
|
||||
unsigned short val = *(const unsigned short *)data;
|
||||
#ifdef OPJ_BIG_ENDIAN
|
||||
val = ((val & 0xffU) << 8) | (val >> 8);
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user