diff --git a/include/boost/multiprecision/gmp.hpp b/include/boost/multiprecision/gmp.hpp index 0868de18..9a601e63 100644 --- a/include/boost/multiprecision/gmp.hpp +++ b/include/boost/multiprecision/gmp.hpp @@ -1636,8 +1636,7 @@ inline typename enable_if, Integer>::type eval_integer_modu { if((sizeof(Integer) <= sizeof(long)) || (val <= (std::numeric_limits::max)())) { - gmp_int r; - return mpz_tdiv_r_ui(r.data(), x.data(), val); + return mpz_tdiv_ui(x.data(), val); } else {