File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -582,13 +582,10 @@ template <typename CType>
582582bool IsScalarEqual (CType left, CType right, const EqualOptions& options) {
583583 std::shared_ptr<Scalar> scalar_left;
584584 std::shared_ptr<Scalar> scalar_right;
585- if constexpr (std::is_floating_point_v<CType>) {
586- scalar_left = CreateScalar<typename CTypeTraits<CType>::ScalarType>(left);
587- scalar_right = CreateScalar<typename CTypeTraits<CType>::ScalarType>(right);
588- } else {
589- scalar_left = CreateScalar<HalfFloatScalar>(left);
590- scalar_right = CreateScalar<HalfFloatScalar>(right);
591- }
585+
586+ scalar_left = CreateScalar<typename CTypeTraits<CType>::ScalarType>(left);
587+ scalar_right = CreateScalar<typename CTypeTraits<CType>::ScalarType>(right);
588+
592589 return scalar_left->Equals (*scalar_right, options);
593590}
594591
You can’t perform that action at this time.
0 commit comments