Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

slong : Cint or Clong? #34

Open
kalmarek opened this issue Dec 31, 2019 · 1 comment
Open

slong : Cint or Clong? #34

kalmarek opened this issue Dec 31, 2019 · 1 comment

Comments

@kalmarek
Copy link
Contributor

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
Copy link
Owner

JeffreySarnoff commented Dec 31, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants