ColorConversion: Add cast to silence -Wclass-memaccess.

This commit is contained in:
Augustin Cavalier 2021-11-16 19:05:14 -05:00
parent 1e541d3127
commit d1035d48e6

View File

@ -143,7 +143,7 @@ PaletteConverter::SetTo(const rgb_color *palette)
if (error == B_OK) {
fColorMap = fOwnColorMap;
// init color list
memcpy(fOwnColorMap->color_list, palette, sizeof(rgb_color) * 256);
memcpy((void*)fOwnColorMap->color_list, palette, sizeof(rgb_color) * 256);
// init index map
// TODO: build this list takes about 2 seconds in qemu on my system
// (because of color_distance())