Avoid invalid conversion error with C++ compilators

This commit is contained in:
Jan Grulich 2019-01-02 10:05:40 +01:00 committed by Wim Taymans
parent f8b156ac14
commit 371da358d1

View file

@ -58,7 +58,7 @@ pw_spa_pod_copy(const struct spa_pod *pod)
return NULL;
size = SPA_POD_SIZE(pod);
if ((c = malloc(size)) == NULL)
if ((c = (struct spa_pod *) malloc(size)) == NULL)
return NULL;
return (struct spa_pod *) memcpy(c, pod, size);