diff --git a/libshvchainpack/src/rpcvalue.cpp b/libshvchainpack/src/rpcvalue.cpp index cded85d9..5f3d2c36 100644 --- a/libshvchainpack/src/rpcvalue.cpp +++ b/libshvchainpack/src/rpcvalue.cpp @@ -355,8 +355,7 @@ ResultType impl_to_int(const RpcValue::VariantType& value) return std::visit([] (const auto& x) { using TypeX = std::remove_cvref_t; if constexpr (std::is_same() || - std::is_same() || - std::is_same()) { + std::is_same()) { return static_cast(x); } else if constexpr (std::is_same()) { return static_cast(convert_to_int(x)); @@ -370,7 +369,8 @@ ResultType impl_to_int(const RpcValue::VariantType& value) std::is_same>() || std::is_same>() || std::is_same>() || - std::is_same>()) { + std::is_same>() || + std::is_same()) { // Casting a bool to an int is prohibited. return ResultType{0}; } else { static_assert(not_implemented_for_type, "impl_to_int not implemented for this type");