diff options
author | Olaf Hering <olaf@aepfle.de> | 2015-07-07 16:10:35 +0200 |
---|---|---|
committer | Olaf Hering <olaf@aepfle.de> | 2015-07-07 17:24:50 +0200 |
commit | 74895068cc0c85e661aab4eae4f99e80347468ee (patch) | |
tree | 8ed4edf54f4d9d45a728e8254637ac37aaa6955a /lib | |
parent | 2de0d2fb2d29f3b69f9e7ea65f8e03e763a92be2 (diff) |
[cximage]: remove undefined operation on variable
ximadsp.cpp: In member function 'bool CxImage::Lut(BYTE*)':
ximadsp.cpp:2797:26: warning: operation on 'iSrc' may be undefined [-Wsequence-point]
*iSrc++ = pLut[*iSrc];
Signed-off-by: Olaf Hering <olaf@aepfle.de>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/cximage-6.0/CxImage/ximadsp.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/cximage-6.0/CxImage/ximadsp.cpp b/lib/cximage-6.0/CxImage/ximadsp.cpp index fd13446b0e..8f9123d813 100644 --- a/lib/cximage-6.0/CxImage/ximadsp.cpp +++ b/lib/cximage-6.0/CxImage/ximadsp.cpp @@ -2794,7 +2794,8 @@ bool CxImage::Lut(BYTE* pLut) // faster loop for full image BYTE *iSrc=info.pImage; for(unsigned long i=0; i < head.biSizeImage ; i++){ - *iSrc++ = pLut[*iSrc]; + *iSrc = pLut[*iSrc]; + iSrc++; } return true; } |