Fix integer rounding relicts, no issue

This commit is contained in:
heckflosse
2017-04-21 11:41:47 +02:00
parent 224359d4ff
commit 936e62fee9
2 changed files with 2 additions and 2 deletions

View File

@@ -231,7 +231,7 @@ void RawImageSource::CLASS cfa_linedn(float noise)
for (int col = 16 + left, indx = rr * TS + 16; indx < rr * TS + numcols - 16; indx++, col++) {
if (rawData[row][col] < clip_pt && cfadn[indx] < clip_pt) {
RawDataTmp[row * width + col] = CLIP((int)(cfadn[indx] + 0.5f));
RawDataTmp[row * width + col] = CLIP(cfadn[indx]);
}
}
}