Advertisement
PVS-StudioWarnings

PVS-Studio warning V205 for IPP Samples

Nov 21st, 2014
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.79 KB | None | 0 0
  1. IppStatus kDTreeBuild_th(IpprKDTreeNode **pDstKDTree,
  2.   const Ipp32f * const pSrcVert,
  3.   const Ipp32s * const pSrcTriInx,
  4.   Ipp32s SrcVertSize, Ipp32s SrcTriSize,
  5.   Ipp32s *pDstKDTreeSize,
  6.   const void * const pBldContext,
  7.   int threadCnt, bool *aType)
  8. {
  9.   IpprKDTreeNode  *current;
  10.   ...
  11.   left = (IpprKDTreeNode *)((long)(current) +
  12.                            (current->flag_k_ofs)&(~0x3));
  13.   ...
  14. }
  15.  
  16. This suspicious code was found in IPP Samples project by PVS-Studio static code analyzer.
  17. Warning message is:
  18. V205 Explicit conversion of pointer type to 32-bit integer type: (long)(current) ipprsample ippr_sample.cpp 175
  19.  
  20. 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