aboutsummaryrefslogtreecommitdiffstats
path: root/util/generic/cast.h
diff options
context:
space:
mode:
authorAndrey Khalyavin <halyavin@gmail.com>2022-02-10 16:46:29 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:29 +0300
commitf773626848a7c7456803654292e716b83d69cc12 (patch)
treedb052dfcf9134f492bdbb962cb6c16cea58e1ed3 /util/generic/cast.h
parentf43ab775d197d300eb67bd4497632b909cd7c2a5 (diff)
downloadydb-f773626848a7c7456803654292e716b83d69cc12.tar.gz
Restoring authorship annotation for Andrey Khalyavin <halyavin@gmail.com>. Commit 1 of 2.
Diffstat (limited to 'util/generic/cast.h')
-rw-r--r--util/generic/cast.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/util/generic/cast.h b/util/generic/cast.h
index 0d4a41f385..69bfdf4102 100644
--- a/util/generic/cast.h
+++ b/util/generic/cast.h
@@ -84,7 +84,7 @@ public:
template <class TType>
constexpr bool IsNegative(const TType value) noexcept {
- return TInteger<std::is_unsigned<TType>::value>::IsNegative(value);
+ return TInteger<std::is_unsigned<TType>::value>::IsNegative(value);
}
namespace NPrivate {
@@ -116,7 +116,7 @@ inline std::enable_if_t<!::NPrivate::TSafelyConvertible<TSmall, TLarge>::Result,
using TSmallInt = ::NPrivate::TUnderlyingTypeOrSelf<TSmall>;
using TLargeInt = ::NPrivate::TUnderlyingTypeOrSelf<TLarge>;
- if (std::is_unsigned<TSmallInt>::value && std::is_signed<TLargeInt>::value) {
+ if (std::is_unsigned<TSmallInt>::value && std::is_signed<TLargeInt>::value) {
if (IsNegative(largeInt)) {
ythrow TBadCastException() << "Conversion '" << TypeName<TLarge>() << '{' << TLargeInt(largeInt) << "}' to '"
<< TypeName<TSmallInt>()
@@ -126,7 +126,7 @@ inline std::enable_if_t<!::NPrivate::TSafelyConvertible<TSmall, TLarge>::Result,
TSmallInt smallInt = TSmallInt(largeInt);
- if (std::is_signed<TSmallInt>::value && std::is_unsigned<TLargeInt>::value) {
+ if (std::is_signed<TSmallInt>::value && std::is_unsigned<TLargeInt>::value) {
if (IsNegative(smallInt)) {
ythrow TBadCastException() << "Conversion '" << TypeName<TLarge>() << '{' << TLargeInt(largeInt) << "}' to '"
<< TypeName<TSmallInt>()