diff --git a/src/rpn-general.cc b/src/rpn-general.cc index e6e001b..a38fc02 100644 --- a/src/rpn-general.cc +++ b/src/rpn-general.cc @@ -190,7 +190,7 @@ void Program::RpnPrecision() { ARG_MUST_BE_OF_TYPE(0, kNumber); // set precision - int prec = static_cast(stack_.value(0).toLong()); + mpfr_prec_t prec = static_cast(stack_.value(0).toLong()); if (prec >= MPFR_PREC_MIN && prec <= MPFR_PREC_MAX) { mpreal::set_default_prec(prec);