projects
/
openjpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7dfcbf9
)
Fix compiler warnings
author
mayeut
<mayeut@users.noreply.github.com>
Sun, 1 Nov 2015 15:56:50 +0000
(16:56 +0100)
committer
mayeut
<mayeut@users.noreply.github.com>
Sun, 1 Nov 2015 15:56:50 +0000
(16:56 +0100)
src/bin/jp2/convert.c
patch
|
blob
|
history
diff --git
a/src/bin/jp2/convert.c
b/src/bin/jp2/convert.c
index b072218c6fbdc514c69ef441c5bb66d78fba2631..13713204b1a1bc2dffa2b172616b8b3290bd2a63 100644
(file)
--- 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