Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mng_retcode mng_promote_idx8_rgb16 (mng_datap pData)
- {
- ....
- *(pDstline+1) = (mng_uint8)(iR && 0xFF);
- *(pDstline+2) = (mng_uint8)(iG >> 8);
- *(pDstline+3) = (mng_uint8)(iG && 0xFF);
- *(pDstline+4) = (mng_uint8)(iB >> 8);
- *(pDstline+5) = (mng_uint8)(iB && 0xFF);
- ....
- }
- This suspicious code was found in libmng project by PVS-Studio static code analyzer.
- Warning message is:
- V560 A part of conditional expression is always true: 0xFF. libmng_pixels.c 15540
- PVS-Studio is a static analyzer for detecting bugs in the source code of applications written in C, C++, C++11, C++/CX. Site: http://www.viva64.com/en/pvs-studio/
Advertisement
Add Comment
Please, Sign In to add comment