Browse Source

Fix previous commit

Signed-off-by: falkTX <falktx@gmail.com>
tags/v2.1-alpha2
falkTX 5 years ago
parent
commit
0938f19d32
Signed by: falkTX <falktx@gmail.com> GPG Key ID: 2D3445A829213837
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      source/includes/lv2/atom-forge.h

+ 1
- 1
source/includes/lv2/atom-forge.h View File

@@ -296,7 +296,7 @@ lv2_atom_forge_raw(LV2_Atom_Forge* forge, const void* data, uint32_t size)
if (forge->sink) { if (forge->sink) {
out = forge->sink(forge->handle, data, size); out = forge->sink(forge->handle, data, size);
} else { } else {
out = (LV2_Atom_Forge_Ref)((uint32_t)forge->buf + forge->offset);
out = (LV2_Atom_Forge_Ref)forge->buf + (LV2_Atom_Forge_Ref)forge->offset;
uint8_t* mem = forge->buf + forge->offset; uint8_t* mem = forge->buf + forge->offset;
if (forge->offset + size > forge->size) { if (forge->offset + size > forge->size) {
return 0; return 0;


Loading…
Cancel
Save