projects
/
openjpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd8448e
)
Fix -Wconversion warning
author
Even Rouault
<even.rouault@spatialys.com>
Thu, 17 Aug 2017 17:05:29 +0000
(19:05 +0200)
committer
Even Rouault
<even.rouault@spatialys.com>
Thu, 17 Aug 2017 17:05:29 +0000
(19:05 +0200)
src/bin/jp2/convert.c
patch
|
blob
|
history
diff --git
a/src/bin/jp2/convert.c
b/src/bin/jp2/convert.c
index deb4641e45364e71fe717f7b991f34f193621200..5459f7d44533e0fccc66a4be5eb7fc01cc7f731c 100644
(file)
--- 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