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 0e91276a03
commit 238be61364

View file

@ -63,7 +63,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);