diff --git a/src/KingSystem/Utils/FixedString.h b/src/KingSystem/Utils/FixedString.h index 039df272..1119ac0b 100644 --- a/src/KingSystem/Utils/FixedString.h +++ b/src/KingSystem/Utils/FixedString.h @@ -56,13 +56,14 @@ template constexpr auto Str() { constexpr char digits[] = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"; - FixedString<([]() constexpr noexcept { + constexpr auto len = [] { unsigned int len = N > 0 ? 0 : 1; for (auto n = N; n; len++, n /= base) continue; return len; - }())> - buf{}; + }(); + + FixedString buf{}; auto ptr = buf.data() + buf.length(); if (N == 0) { diff --git a/toolchain/musl b/toolchain/musl index 9a9252a5..25ed8669 160000 --- a/toolchain/musl +++ b/toolchain/musl @@ -1 +1 @@ -Subproject commit 9a9252a54a67f54c066966f8f0599c450391bd44 +Subproject commit 25ed8669943bee65a650700d340e451eda2a26ba