Browse Source

Fix a compiler warning

Signed-off-by: falkTX <falktx@falktx.com>
wayland-v2
falkTX 2 months ago
parent
commit
101141e194
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      distrho/extra/String.hpp

+ 1
- 1
distrho/extra/String.hpp View File

@@ -695,7 +695,7 @@ public:
"abcdefghijklmnopqrstuvwxyz"
"0123456789+/";

const size_t strBufSize = std::min(d_nextPowerOf2(static_cast<uint32_t>(dataSize/3)), 65536U);
const size_t strBufSize = std::min(d_nextPowerOf2(static_cast<uint32_t>(dataSize / 3) + 1), 65536U);
char* strBuf = static_cast<char*>(std::malloc(strBufSize));
DISTRHO_SAFE_ASSERT_RETURN(strBuf != nullptr, String());



Loading…
Cancel
Save