Added ftype::Trunc.

Signed-off-by: Viktor Govako <viktor.govako@gmail.com>
This commit is contained in:
Viktor Govako
2025-07-15 00:00:37 -03:00
committed by Konstantin Pastbin
parent 4e9efa63ff
commit 11ee2b121b
4 changed files with 11 additions and 14 deletions

View File

@@ -23,10 +23,7 @@ public:
{
for (auto level = ftype::GetLevel(t); level; --level)
{
auto truncatedType = t;
ftype::TruncValue(truncatedType, level);
auto const it = m_mapping.find(truncatedType);
auto const it = m_mapping.find(ftype::Trunc(t, level));
if (it != m_mapping.cend())
return it;
}