Browse Source

Force things to build

Signed-off-by: falkTX <falktx@falktx.com>
pull/1775/head
falkTX 2 years ago
parent
commit
fb9475762d
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
3 changed files with 7 additions and 8 deletions
  1. +1
    -1
      source/backend/plugin/CarlaPluginCLAP.cpp
  2. +4
    -6
      source/modules/water/text/CharPointer_UTF8.h
  3. +2
    -1
      source/modules/water/text/String.cpp

+ 1
- 1
source/backend/plugin/CarlaPluginCLAP.cpp View File

@@ -1473,7 +1473,7 @@ public:
fOutputAudioBuffers.extra[i].offset = aOuts;
fOutputAudioBuffers.extra[i].isMain = portInfo.flags & CLAP_AUDIO_PORT_IS_MAIN;
for (uint32_t j=0; j<portInfo.channel_count; ++j)
fOutputAudioBuffers.buffers[i].constant_mask |= (1 << j);
fOutputAudioBuffers.buffers[i].constant_mask |= (1ULL << j);

aOuts += portInfo.channel_count;
}


+ 4
- 6
source/modules/water/text/CharPointer_UTF8.h View File

@@ -33,6 +33,8 @@
namespace water {
class String;
//==============================================================================
/**
Wraps a pointer to a null-terminated UTF-8 character string, and provides
@@ -537,12 +539,6 @@ public:
return true;
}
/** Atomically swaps this pointer for a new value, returning the previous value. */
CharPointer_UTF8 atomicSwap (const CharPointer_UTF8 newValue)
{
return CharPointer_UTF8 (reinterpret_cast<Atomic<CharType*>&> (data).exchange (newValue.data));
}
/** These values are the byte-order mark (BOM) values for a UTF-8 stream. */
enum
{
@@ -566,6 +562,8 @@ public:
private:
CharType* data;
friend class String;
};
}


+ 2
- 1
source/modules/water/text/String.cpp View File

@@ -242,7 +242,8 @@ void String::clear() noexcept
String& String::operator= (const String& other) noexcept
{
StringHolder::retain (other.text);
StringHolder::release (text.atomicSwap (other.text));
std::swap(text.data, const_cast<CharPointer_UTF8&>(other.text).data);
StringHolder::release (other.text);
return *this;
}


Loading…
Cancel
Save