Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define ICERR_CUSTOM -400L
- static const char *GetVCMErrorString(uint32 icErr) {
- ....
- if (icErr <= ICERR_CUSTOM)
- err = "A codec-specific error occurred.";
- ....
- }
- This suspicious code was found in Virtualdub project by PVS-Studio static code analyzer.
- Warning message is:
- V605 Consider verifying the expression: icErr <= - 400L. An unsigned value is compared to the number -400. system error_win32.cpp 54
- 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