diff options
author | Arne Morten Kvarving <cptspiff@gmail.com> | 2014-06-23 15:16:10 +0200 |
---|---|---|
committer | Arne Morten Kvarving <cptspiff@gmail.com> | 2015-04-10 14:49:16 +0200 |
commit | d6c63a227841207fe1d8f9664d54ddca9e3333de (patch) | |
tree | eeda1e51210659c204ff2548ddfb9da3d33ac3ad /lib | |
parent | f9a5c18bab00c307c01b81b1ef98b9fb96bb842f (diff) |
fixed: bitwise and intended, not logical
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libexif/JpegParse.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libexif/JpegParse.cpp b/lib/libexif/JpegParse.cpp index ded323119a..18f1a83e7a 100644 --- a/lib/libexif/JpegParse.cpp +++ b/lib/libexif/JpegParse.cpp @@ -108,7 +108,7 @@ bool CJpegParse::GetSection (FILE *infile, const unsigned short sectionLength) } // Store first two pre-read bytes. m_SectionBuffer[0] = (unsigned char)(sectionLength >> 8); - m_SectionBuffer[1] = (unsigned char)(sectionLength && 0x00FF); + m_SectionBuffer[1] = (unsigned char)(sectionLength & 0x00FF); unsigned int len = (unsigned int)sectionLength; |