Correct a bad type

This commit is contained in:
Louis Rubet 2022-09-22 11:29:24 +02:00
parent 4b9413b63b
commit 5e3bafe295

View file

@ -190,7 +190,7 @@ void Program::RpnPrecision() {
ARG_MUST_BE_OF_TYPE(0, kNumber); ARG_MUST_BE_OF_TYPE(0, kNumber);
// set precision // set precision
int prec = static_cast<int>(stack_.value<Number>(0).toLong()); mpfr_prec_t prec = static_cast<int>(stack_.value<Number>(0).toLong());
if (prec >= MPFR_PREC_MIN && prec <= MPFR_PREC_MAX) { if (prec >= MPFR_PREC_MIN && prec <= MPFR_PREC_MAX) {
mpreal::set_default_prec(prec); mpreal::set_default_prec(prec);