JeffreySarnoff/ArbNumerics.jl

`slong` : `Cint` or `Clong`?

kalmarek opened this issue · 1 comments

I guess arbs slong translates to Clong on the julia side:

julia> w = typemax(Cint) +1
2147483648

julia> ArbComplex(w)
ERROR: InexactError: trunc(Int32, 2147483648)
(...)

julia> z = ArbComplex{128}()
0 + 0im

julia> ccall(ArbNumerics.@libarb(acb_set_si), Cvoid, (Ref{ArbComplex}, Clong), z, w)

julia> z
2147483648.0 + 0im