Fix some lgtm issues

This commit is contained in:
Ingo Weyrich
2019-10-30 14:07:49 +01:00
parent d7ec033829
commit 1d51016bdd
8 changed files with 18 additions and 18 deletions

View File

@@ -198,7 +198,7 @@ float* RawImageSource::CA_correct_RT(
//block CA shift values and weight assigned to block
float* const blockwt = buffer + (height * width);
memset(blockwt, 0, vblsz * hblsz * (2 * 2 + 1) * sizeof(float));
memset(blockwt, 0, static_cast<unsigned long>(vblsz) * hblsz * (2 * 2 + 1) * sizeof(float));
float (*blockshifts)[2][2] = (float (*)[2][2])(blockwt + vblsz * hblsz);
// Because we can't break parallel processing, we need a switch do handle the errors