fix: undefined symbol without LEAN_USE_GMP (#9106)

This PR fixes `undefined symbol: lean::mpz::divexact(lean::mpz const&,
lean::mpz const&)` when building without `LEAN_USE_GMP`

This fixes a regression in #8089
This commit is contained in:
Eric Wieser 2025-07-03 17:50:21 +01:00 committed by GitHub
parent ba7135d73c
commit 0106ca3bec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -763,7 +763,7 @@ mpz & mpz::operator%=(mpz const & o) {
return rem(o.m_size, o.m_digits);
}
mpz divexact(mpz const & n, mpz const & d) {
mpz mpz::divexact(mpz const & n, mpz const & d) {
return n / d;
}