diff options
Diffstat (limited to 'include/lv2/atom/forge.h')
| -rw-r--r-- | include/lv2/atom/forge.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/lv2/atom/forge.h b/include/lv2/atom/forge.h index b9dff85..daf603c 100644 --- a/include/lv2/atom/forge.h +++ b/include/lv2/atom/forge.h @@ -287,7 +287,7 @@ lv2_atom_forge_raw(LV2_Atom_Forge* forge, const void* data, uint32_t size) forge->offset += size; memcpy(mem, data, size); } - for (LV2_Atom_Forge_Frame* f = forge->stack; f; f = f->parent) { + for (const LV2_Atom_Forge_Frame* f = forge->stack; f; f = f->parent) { lv2_atom_forge_deref(forge, f->ref)->size += size; } return out; @@ -492,7 +492,7 @@ lv2_atom_forge_vector(LV2_Atom_Forge* forge, const void* elems) { const LV2_Atom_Vector a = { - {(uint32_t)sizeof(LV2_Atom_Vector_Body) + n_elems * child_size, + {(uint32_t)sizeof(LV2_Atom_Vector_Body) + (n_elems * child_size), forge->Vector}, {child_size, child_type}}; const LV2_Atom_Forge_Ref out = lv2_atom_forge_write(forge, &a, sizeof(a)); |