Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void
- SbUTMProjection::project(....) const
- {
- ....
- //Make sure the longitude is between -180.00 .. 179.9
- double LongTemp =
- (int(LongRad.deg())+180)-
- int((int(LongRad.deg())+180)/360)*360-180;
- ....
- }
- This suspicious code was found in Coin3D project by PVS-Studio static code analyzer.
- Warning message is:
- V636 The expression was implicitly casted from 'int' type to 'double' type. Consider utilizing an explicit type cast to avoid overflow. An example: double A = (double)(X) * Y;. sbutmprojection.cpp 56
- 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