1
0
Fork 0

Update number/fractional.cc

Signed-off-by: subcrip <contact@subc.rip>
This commit is contained in:
subcrip 2024-11-28 10:24:22 +00:00
parent 560e2ea26d
commit 3b3629a339
1 changed files with 1 additions and 1 deletions

View File

@ -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; }
}; };