Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define ON_EPSILON 0.1
- void CPrediction::SetIdealPitch (....)
- {
- int step;
- ....
- step = floor_height[j] - floor_height[j-1];
- if (step > -ON_EPSILON && step < ON_EPSILON)
- continue;
- ....
- }
- This suspicious code was found in Source SDK project by PVS-Studio static code analyzer.
- Warning message is:
- V674 The '-0.1' literal of the 'double' type is compared to a value of the 'int' type. Consider inspecting the 'step > - 0.1' expression. Client (HL2) prediction.cpp 977
- 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
Advertisement