kopia lustrzana https://gitlab.com/sane-project/backends
genesys: Add missing pointer cast on malloc call
Fixes build on Fedora 29 and 30.merge-requests/71/head
rodzic
2bb5ed655a
commit
f498e5fa66
|
@ -2254,7 +2254,7 @@ void sanei_gl_vector_reserve(Genesys_Vector* v, size_t count)
|
||||||
if (count <= v->capacity)
|
if (count <= v->capacity)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
char* new_data = malloc(count * v->element_size);
|
char* new_data = (char *) malloc(count * v->element_size);
|
||||||
if (v->data != NULL)
|
if (v->data != NULL)
|
||||||
{
|
{
|
||||||
memcpy(new_data, v->data, v->size * v->element_size);
|
memcpy(new_data, v->data, v->size * v->element_size);
|
||||||
|
|
Ładowanie…
Reference in New Issue