From 1d0a4cb81ee979108bc7573bceb5fb0933ccc593 Mon Sep 17 00:00:00 2001 From: falkTX Date: Sat, 6 May 2023 17:25:14 +0200 Subject: [PATCH] Dont use VLAs Signed-off-by: falkTX --- source/utils/CarlaString.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/utils/CarlaString.hpp b/source/utils/CarlaString.hpp index a0bff935e..048bf6f98 100644 --- a/source/utils/CarlaString.hpp +++ b/source/utils/CarlaString.hpp @@ -643,7 +643,7 @@ public: "abcdefghijklmnopqrstuvwxyz" "0123456789+/"; - const std::size_t kTmpBufSize = std::min(carla_nextPowerOf2(static_cast(dataSize/3)), 65536U); + static constexpr const std::size_t kTmpBufSize = 65536U; const uchar* bytesToEncode((const uchar*)data);