mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-08 13:30:08 -05:00
Avoid invalid conversion error with C++ compilators
This commit is contained in:
parent
f8b156ac14
commit
371da358d1
1 changed files with 1 additions and 1 deletions
|
|
@ -58,7 +58,7 @@ pw_spa_pod_copy(const struct spa_pod *pod)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
size = SPA_POD_SIZE(pod);
|
size = SPA_POD_SIZE(pod);
|
||||||
if ((c = malloc(size)) == NULL)
|
if ((c = (struct spa_pod *) malloc(size)) == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
return (struct spa_pod *) memcpy(c, pod, size);
|
return (struct spa_pod *) memcpy(c, pod, size);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue