aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorOlaf Hering <olaf@aepfle.de>2015-07-07 16:10:35 +0200
committerOlaf Hering <olaf@aepfle.de>2015-07-08 08:03:24 +0200
commit1984bc0c81a13c75e7873f612a9fc889c277453b (patch)
tree97148d6cbf5d65b127704966d4868e737f691903 /lib
parente4cfe671cdc3d8c12c8112f6e553f1cd20cedb3f (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.cpp3
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;
}