From fbeb08156a8f52ac1964110ea384bdda8d9b5a54 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Thu, 23 May 2024 01:29:45 -0500 Subject: [PATCH] [ox/model] Fix type params in buildTypeId --- deps/ox/src/ox/model/desctypes.hpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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);