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

@@ -103,7 +103,7 @@ void RawImageSource::vng4_demosaic (const array2D<float> &rawData, array2D<float
const int width = W, height = H;
constexpr unsigned int colors = 4;
float (*image)[4] = (float (*)[4]) calloc (height * width, sizeof * image);
float (*image)[4] = (float (*)[4]) calloc (static_cast<size_t>(height) * width, sizeof * image);
int lcode[16][16][32];
float mul[16][16][8];