Silence more code scanning warnings

This commit is contained in:
Kovid Goyal
2020-07-07 10:01:38 +05:30
parent 521f921424
commit ee3462592a
3 changed files with 4 additions and 4 deletions

View File

@@ -457,7 +457,7 @@ downsample_bitmap(ProcessedBitmap *bm, unsigned int width, unsigned int cell_hei
// it matters
float ratio = MAX((float)bm->width / width, (float)bm->rows / cell_height);
int factor = (int)ceilf(ratio);
uint8_t *dest = calloc(4, width * cell_height);
uint8_t *dest = calloc(4, (size_t)width * cell_height);
if (dest == NULL) fatal("Out of memory");
uint8_t *d = dest;