diff --git a/include/9float.hpp b/include/9float.hpp index 9f79038..bb1ef88 100644 --- a/include/9float.hpp +++ b/include/9float.hpp @@ -27,7 +27,7 @@ public: template constexpr Q (const srcT value) - : backend{(integer_type)(value*(1<& operator/=(const Q& oth) { - backend*=1<::degen; + backend*=((integer_type)1)<::degen; backend/=oth.backend; return *this; } @@ -145,14 +145,14 @@ public: constexpr operator float() { float n=backend; - n/=(1<::degen); + n/=(((integer_type)1)<::degen); return n; } constexpr operator double() { double n=backend; - n/=(1<::degen); + n/=(((integer_type)1)<::degen); return n; } };