diff options
| author | mayeut <mayeut@users.noreply.github.com> | 2015-11-01 16:56:50 +0100 |
|---|---|---|
| committer | mayeut <mayeut@users.noreply.github.com> | 2015-11-01 16:56:50 +0100 |
| commit | ce26e523dd2345413ee7990afdf84f2c4f13bc88 (patch) | |
| tree | e596df10615b570c77c066b2c4da23146203eb76 /src/bin | |
| parent | 7dfcbf9d7b2cb21b753752c06c504b0620191c2a (diff) | |
Fix compiler warnings
Diffstat (limited to 'src/bin')
| -rw-r--r-- | src/bin/jp2/convert.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/jp2/convert.c b/src/bin/jp2/convert.c index b072218c..13713204 100644 --- a/src/bin/jp2/convert.c +++ b/src/bin/jp2/convert.c @@ -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 |
