Advertisement
PVS-StudioWarnings

PVS-Studio warning V610 for Snes9x

Nov 27th, 2014
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.49 KB | None | 0 0
  1. static void DSP1_Parameter (....)
  2. {
  3.   int16  C;
  4.   ....
  5.   if (C == -32768)
  6.   {
  7.     C >>= 1;
  8.     E++;
  9.   }
  10.   ....
  11. }
  12.  
  13. This suspicious code was found in Snes9x project by PVS-Studio static code analyzer.
  14. Warning message is:
  15. V610 Unspecified behavior. Check the shift operator '>>=. The left operand 'C' is negative. dsp1.cpp 808
  16.  
  17. 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