Update number/fractional.cc
Signed-off-by: subcrip <contact@subc.rip>
This commit is contained in:
parent
560e2ea26d
commit
3b3629a339
|
@ -41,5 +41,5 @@ struct fractional {
|
||||||
return in;
|
return in;
|
||||||
}
|
}
|
||||||
template <typename U, typename = typename enable_if<is_convertible_v<T, U>>::type>
|
template <typename U, typename = typename enable_if<is_convertible_v<T, U>>::type>
|
||||||
inline U into(void) const { return U(p) / q; }
|
inline U into(void) const { return static_cast<U>(p) / q; }
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue