diff options
| author | dgolear <[email protected]> | 2026-04-30 14:50:22 +0300 |
|---|---|---|
| committer | dgolear <[email protected]> | 2026-04-30 15:18:42 +0300 |
| commit | ff286f36b5f9efa572d1fecc8bed6ea553614716 (patch) | |
| tree | 959a8ebecb0c5d09b57bc53651c543b90522b12a /library/cpp/yt/error/text_yson.cpp | |
| parent | 7a0a5317feb7f89e5fe304d73580b033c96177aa (diff) | |
YT: Add missing 16bit types to TErrorAttribute conversions
commit_hash:7e973890af2061e2a78b34d31c404f000375a88b
Diffstat (limited to 'library/cpp/yt/error/text_yson.cpp')
| -rw-r--r-- | library/cpp/yt/error/text_yson.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/library/cpp/yt/error/text_yson.cpp b/library/cpp/yt/error/text_yson.cpp index 698c2fd244a..545f38be5aa 100644 --- a/library/cpp/yt/error/text_yson.cpp +++ b/library/cpp/yt/error/text_yson.cpp @@ -87,6 +87,12 @@ std::string ConvertToTextYsonString<i8>(const i8& value) } template <> +std::string ConvertToTextYsonString<i16>(const i16& value) +{ + return ConvertToTextYsonString(static_cast<i64>(value)); +} + +template <> std::string ConvertToTextYsonString<i32>(const i32& value) { return ConvertToTextYsonString(static_cast<i64>(value)); @@ -105,6 +111,12 @@ std::string ConvertToTextYsonString<ui8>(const ui8& value) } template <> +std::string ConvertToTextYsonString<ui16>(const ui16& value) +{ + return ConvertToTextYsonString(static_cast<ui64>(value)); +} + +template <> std::string ConvertToTextYsonString<ui32>(const ui32& value) { return ConvertToTextYsonString(static_cast<ui64>(value)); |
