Skip to content

Commit 01d1482

Browse files
authored
Fix ccall on 0.7 (#121)
1 parent 7a5f130 commit 01d1482

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/display.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ function round_string(x::BigFloat, digits::Int, r::RoundingMode)
112112
buf = Array{UInt8}(lng + 1)
113113

114114
lng = ccall((:mpfr_snprintf,:libmpfr), Int32,
115-
(Ptr{UInt8}, Culong, Ptr{UInt8}, Int32, Ptr{BigFloat}...),
116-
buf, lng + 1, "%.$(digits)R*g", Base.MPFR.to_mpfr(r), &x)
115+
(Ptr{UInt8}, Culong, Ptr{UInt8}, Int32, Ref{BigFloat}...),
116+
buf, lng + 1, "%.$(digits)R*g", Base.MPFR.to_mpfr(r), x)
117117

118118
repr = unsafe_string(pointer(buf))
119119

0 commit comments

Comments
 (0)