You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that if an assignment to the numerator and/or denominator could take an mpq_t out of the canonical form described at the start of this chapter (see Rational Number Functions) then mpq_canonicalize must be called before any other mpq functions are applied to that mpq_t.
There are probably other rational functions that need to be scrutinized as well.
The text was updated successfully, but these errors were encountered:
Mpq::ratio
is unsafe:results in:
Tested this using gmp-6.1.2 on Arch Linux.
To quote the manual:
There are probably other rational functions that need to be scrutinized as well.
The text was updated successfully, but these errors were encountered: