I am doing static code analysis (Using Gimpel PC- Lint) of my source code. In code analysis, i am getting a warning 'Suspicious Truncation in arithmetic expression combining with pointer'.
Here is the what analysis report says::
source\interp.cpp(142): error 679: (Warning -- Suspicious Truncation in arithmetic expression combining with pointer)
py[ulIndex] = y[ulIndex+1] - y[ulIndex];
Here py, y are dynamic array of data type double with same size but still the warning is coming up in code analysis for the above line.
Can anyone help me to figure out this?
Thanks in advance.