mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
fix more compile errors
Avoid void * arithmetic Do explicit casts to target type to make c++ happy
This commit is contained in:
parent
3fa2ad33e4
commit
b0f4be5fbc
26 changed files with 175 additions and 159 deletions
|
|
@ -801,7 +801,7 @@ push_frames(struct state *state,
|
|||
l0 = SPA_MIN(n_bytes, d[0].maxsize - offs);
|
||||
l1 = n_bytes - l0;
|
||||
|
||||
memcpy(d[0].data + offs, src, l0);
|
||||
memcpy(SPA_MEMBER(d[0].data, offs, void), src, l0);
|
||||
if (l1 > 0)
|
||||
memcpy(d[0].data, src + l0, l1);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue