Advertisement
PVS-StudioWarnings

PVS-Studio warning V220 for NetXMS

Nov 24th, 2014
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.61 KB | None | 0 0
  1. BOOL SortItems(_In_ PFNLVCOMPARE pfnCompare,
  2.                _In_ DWORD_PTR dwData);
  3.  
  4. void CLastValuesView::OnListViewColumnClick(....)
  5. {
  6.   ....
  7.   m_wndListCtrl.SortItems(CompareItems, (DWORD)this);
  8.   ....
  9. }
  10.  
  11. This suspicious code was found in NetXMS project by PVS-Studio static code analyzer.
  12. Warning message is:
  13. V220 Suspicious sequence of types castings: memsize -> 32-bit integer -> memsize. The value being casted: 'this'. lastvaluesview.cpp 716
  14.  
  15. 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