diff --git a/src/OpenFOAM/primitives/traits/oneI.H b/src/OpenFOAM/primitives/traits/oneI.H index 8d1d08b6290d5b407d4ddcac227936075be77bb6..4ff522c9d36bdcf3077da48f855b3439e65b3e05 100644 --- a/src/OpenFOAM/primitives/traits/oneI.H +++ b/src/OpenFOAM/primitives/traits/oneI.H @@ -94,7 +94,7 @@ inline constexpr const one& operator/(const one& o, const one&) noexcept template<class Type> inline Type operator/(const one&, const Type& val) { - return scalar(1)/val; + return Type(scalar(1)/val); } template<class Type> @@ -111,13 +111,13 @@ inline constexpr const one& min(const one& o, const one&) noexcept template<class Type> inline Type min(const one&, const Type& t) noexcept { - return min(scalar(1), t); + return Type(min(scalar(1), t)); } template<class Type> inline Type min(const Type& t, const one&) noexcept { - return min(t, scalar(1)); + return Type(min(t, scalar(1))); } inline constexpr const one& max(const one& o, const one&) noexcept @@ -128,13 +128,13 @@ inline constexpr const one& max(const one& o, const one&) noexcept template<class Type> inline Type max(const one&, const Type& t) noexcept { - return max(scalar(1), t); + return Type(max(scalar(1), t)); } template<class Type> inline Type max(const Type& t, const one&) noexcept { - return max(t, scalar(1)); + return Type(max(t, scalar(1))); } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //