Fix errors when compiling code as C++

Change-Id: Iba94e24e764038640f39d61fb2bc9cfb3434cc8f
This commit is contained in:
Vincent Rabaud
2024-07-10 10:30:48 +02:00
parent c1c89f5189
commit 41a5e582c2
3 changed files with 9 additions and 8 deletions

View File

@ -1195,7 +1195,7 @@ int VP8LGetHistoImageSymbols(int xsize, int ysize,
const int entropy_combine_num_bins = low_effort ? NUM_PARTITIONS : BIN_SIZE;
int entropy_combine;
uint16_t* const map_tmp =
WebPSafeMalloc(2 * image_histo_raw_size, sizeof(*map_tmp));
(uint16_t*)WebPSafeMalloc(2 * image_histo_raw_size, sizeof(*map_tmp));
uint16_t* const cluster_mappings = map_tmp + image_histo_raw_size;
int num_used = image_histo_raw_size;
if (orig_histo == NULL || map_tmp == NULL) {