Skip to content

Commit

Permalink
Import minor fixes from main branch
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <falktx@falktx.com>
  • Loading branch information
falkTX committed Sep 30, 2023
1 parent fb2ee3a commit ac8eaf4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source/utils/CarlaRingBuffer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ class CarlaRingBufferControl

const uint32_t wrap((fBuffer->tail > fBuffer->wrtn) ? 0 : fBuffer->size);

return wrap + fBuffer->tail - fBuffer->wrtn;
return wrap + fBuffer->tail - fBuffer->wrtn - 1;
}

// -------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion source/utils/CarlaStateUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ void CarlaStateSave::clear() noexcept
}

uniqueId = 0;
options = 0x0;
options = PLUGIN_OPTIONS_NULL;

#ifndef BUILD_BRIDGE_ALTERNATIVE_ARCH
active = false;
Expand Down

0 comments on commit ac8eaf4

Please sign in to comment.