Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- typedef signed long long S64;
- SFIXED RFXSWF_QFIX(int zaehler, int nenner)
- {
- S64 z = zaehler<<16;
- S64 a = z/(S64)nenner;
- return (SFIXED)a;
- }
- This suspicious code was found in xpdfwin project by PVS-Studio static code analyzer.
- Warning message is:
- V629 Consider inspecting the 'zaehler << 16' expression. Bit shifting of the 32-bit value with a subsequent expansion to the 64-bit type. swftools.c 37
- 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