mirror of
https://github.com/louisrubet/rpn
synced 2024-11-17 07:47:50 +01:00
Correct a bad type
This commit is contained in:
parent
4b9413b63b
commit
5e3bafe295
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue