`slong` : `Cint` or `Clong`?
kalmarek opened this issue · 1 comments
kalmarek commented
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
JeffreySarnoff commented
looks like a bug -- will fix
Jeffrey Sarnoff
… On Dec 31, 2019, at 5:27 AM, kalmarek ***@***.***> wrote:
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> ***@***.***(acb_set_si), Cvoid, (Ref{ArbComplex}, Clong), z, w)
julia> z
2147483648.0 + 0im
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.