diff --git a/number/fractional.cc b/number/fractional.cc index c302579..11c5048 100644 --- a/number/fractional.cc +++ b/number/fractional.cc @@ -41,5 +41,5 @@ struct fractional { return in; } template >::type> - inline U into(void) const { return U(p) / q; } + inline U into(void) const { return static_cast(p) / q; } };