diff --git a/deps/ox/src/ox/model/desctypes.hpp b/deps/ox/src/ox/model/desctypes.hpp index 9eb2af7a..a963ee42 100644 --- a/deps/ox/src/ox/model/desctypes.hpp +++ b/deps/ox/src/ox/model/desctypes.hpp @@ -34,15 +34,16 @@ constexpr auto buildTypeId() noexcept { return ox::sfmt("{};{}", name, version); } -static constexpr auto buildTypeId(CRStringView name, int version, - const TypeParamPack &typeParams = {}) noexcept { +static constexpr auto buildTypeId( + CRStringView name, int version, + const TypeParamPack &typeParams = {}) noexcept { String tp; if (!typeParams.empty()) { tp = "#"; for (const auto &p : typeParams) { tp += p + ","; } - tp.resize(tp.len() - 1); + tp.resize(tp.len()); tp += "#"; } return ox::sfmt("{}{};{}", name, tp, version);