diff options
author | akindyakov <akindyakov@yandex-team.ru> | 2022-02-10 16:52:05 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:52:05 +0300 |
commit | 6818ba20a3267db5010f361f1fadea6ce55cfb4c (patch) | |
tree | 36d485950f15930c3df85729057444b1e128de7f /util/string | |
parent | 57cd0ba1b8c1fb6b71ccd886caab0c1f28fe54f5 (diff) | |
download | ydb-6818ba20a3267db5010f361f1fadea6ce55cfb4c.tar.gz |
Restoring authorship annotation for <akindyakov@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/string')
-rw-r--r-- | util/string/cast.cpp | 12 | ||||
-rw-r--r-- | util/string/cast_ut.cpp | 24 |
2 files changed, 18 insertions, 18 deletions
diff --git a/util/string/cast.cpp b/util/string/cast.cpp index aa1e65a8e9..a8d1dc15ff 100644 --- a/util/string/cast.cpp +++ b/util/string/cast.cpp @@ -614,17 +614,17 @@ bool TryFromStringImpl<TUtf16String>(const wchar16* data, size_t len, TUtf16Stri DEF_INT_SPEC_I(signed TYPE, i64, ID##SBounds) \ DEF_INT_SPEC_I(unsigned TYPE, ui64, ID##UBounds) -#define DEF_INT_SPEC_FIXED_WIDTH(TYPE, ID) \ - DEF_INT_SPEC_I(TYPE, i64, ID##SBounds) \ - DEF_INT_SPEC_I(u##TYPE, ui64, ID##UBounds) - -DEF_INT_SPEC_FIXED_WIDTH(i8, b) +#define DEF_INT_SPEC_FIXED_WIDTH(TYPE, ID) \ + DEF_INT_SPEC_I(TYPE, i64, ID##SBounds) \ + DEF_INT_SPEC_I(u##TYPE, ui64, ID##UBounds) + +DEF_INT_SPEC_FIXED_WIDTH(i8, b) DEF_INT_SPEC(short, s) DEF_INT_SPEC(int, i) DEF_INT_SPEC(long, l) DEF_INT_SPEC(long long, ll) -#undef DEF_INT_SPEC_FIXED_WIDTH +#undef DEF_INT_SPEC_FIXED_WIDTH #undef DEF_INT_SPEC #undef DEF_INT_SPEC_I #undef DEF_INT_SPEC_II diff --git a/util/string/cast_ut.cpp b/util/string/cast_ut.cpp index 033450c38c..b7f351eea2 100644 --- a/util/string/cast_ut.cpp +++ b/util/string/cast_ut.cpp @@ -182,18 +182,18 @@ Y_UNIT_TEST_SUITE(TCastTest) { test2(bool, ""); test2(bool, "a"); - test2(ui8, -1); - test1(i8, -1); - test1(i8, SCHAR_MAX); - test1(i8, SCHAR_MIN); - test1(i8, SCHAR_MAX - 1); - test1(i8, SCHAR_MIN + 1); - test2(i8, (int)SCHAR_MAX + 1); - test2(i8, (int)SCHAR_MIN - 1); - test1(ui8, UCHAR_MAX); - test1(ui8, UCHAR_MAX - 1); - test2(ui8, (int)UCHAR_MAX + 1); - test2(ui8, -1); + test2(ui8, -1); + test1(i8, -1); + test1(i8, SCHAR_MAX); + test1(i8, SCHAR_MIN); + test1(i8, SCHAR_MAX - 1); + test1(i8, SCHAR_MIN + 1); + test2(i8, (int)SCHAR_MAX + 1); + test2(i8, (int)SCHAR_MIN - 1); + test1(ui8, UCHAR_MAX); + test1(ui8, UCHAR_MAX - 1); + test2(ui8, (int)UCHAR_MAX + 1); + test2(ui8, -1); test1(int, -1); test2(unsigned int, -1); test1(short int, -1); |