diff options
author | Kinan Hakim <kinan@google.com> | 2016-01-28 10:50:18 +0100 |
---|---|---|
committer | Kinan Hakim <kinan@google.com> | 2016-01-28 10:50:18 +0100 |
commit | 00a8925eb31ca5d88244f0861fb9b22792ea0df4 (patch) | |
tree | 2e76ff9a04a8f17fb20634a2a65a1a00896fc096 /source | |
parent | 0baf877c64aeb9f5c5d0d3f13c8d2eb25a3c8837 (diff) | |
download | dng_sdk-00a8925eb31ca5d88244f0861fb9b22792ea0df4.tar.gz |
Fix invalid shift base
Diffstat (limited to 'source')
-rw-r--r-- | source/dng_lossless_jpeg.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/source/dng_lossless_jpeg.cpp b/source/dng_lossless_jpeg.cpp index 1c4a965..eb61689 100644 --- a/source/dng_lossless_jpeg.cpp +++ b/source/dng_lossless_jpeg.cpp @@ -1678,17 +1678,12 @@ inline int32 dng_lossless_decoder::HuffDecode (HuffmanTable *htbl) *--------------------------------------------------------------
*/
-#if defined(__clang__) && defined(__has_attribute)
-#if __has_attribute(no_sanitize)
-__attribute__((no_sanitize("undefined")))
-#endif
-#endif
inline void dng_lossless_decoder::HuffExtend (int32 &x, int32 s)
{
if (x < (0x08000 >> (16 - s)))
{
- x += (-1 << s) + 1;
+ x += -(1 << s) + 1;
}
}
|