genesys: Add missing pointer cast on malloc call

Fixes build on Fedora 29 and 30.
merge-requests/71/head
Olaf Meeuwissen 2019-05-20 18:32:48 +09:00
rodzic 2bb5ed655a
commit f498e5fa66
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -2254,7 +2254,7 @@ void sanei_gl_vector_reserve(Genesys_Vector* v, size_t count)
if (count <= v->capacity)
return;
char* new_data = malloc(count * v->element_size);
char* new_data = (char *) malloc(count * v->element_size);
if (v->data != NULL)
{
memcpy(new_data, v->data, v->size * v->element_size);