From ef16e8ef2f770e76337335e302601a2008ba6e5f Mon Sep 17 00:00:00 2001 From: Kristoffer Carlsson Date: Fri, 29 Mar 2019 22:52:14 +0100 Subject: [PATCH] fix undef var in conversion in rounding modes in MPFR (#31258) (cherry picked from commit c2144276fbd549268e164a7cd0b5e249a2f39883) --- base/mpfr.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/mpfr.jl b/base/mpfr.jl index aaf3e9783bf62..64d8bd8f5dbe3 100644 --- a/base/mpfr.jl +++ b/base/mpfr.jl @@ -74,7 +74,7 @@ function convert(::Type{RoundingMode}, r::MPFRRoundingMode) elseif r == MPFRRoundFromZero return RoundFromZero else - throw(ArgumentError("invalid MPFR rounding mode code: $c")) + throw(ArgumentError("invalid MPFR rounding mode code: $r")) end end