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

Twitter.jl on a 32-bit platform (Raspberry Pi) #22

Closed
Alexander-Barth opened this issue Oct 4, 2019 · 2 comments
Closed

Twitter.jl on a 32-bit platform (Raspberry Pi) #22

Alexander-Barth opened this issue Oct 4, 2019 · 2 comments

Comments

@Alexander-Barth
Copy link
Contributor

Thanks for this nice package!

I try to use Twitter.jl on a Rasberry Pi, but I have the following error (while it works on a 64-bit Linux):

Twitter.post_status_update(status = "Test")
# returns
# ERROR: InexactError: trunc(Int32, 1180186675730898944)
# Stacktrace:
# [1] throw_inexacterror(::Symbol, ::Any, ::Int64) at ./boot.jl:567

On 32-bit platforms, Int has just 32-bits. I propose to use actually Int64 for all IDs.
See also https://blog.twitter.com/developer/en_us/a/2013/64-bit-twitter-user-idpocalypse.html

I will submit a PR.

I am using Julia 1.0.3.

@randyzwitch
Copy link
Owner

Fixed by #23

@Alexander-Barth
Copy link
Contributor Author

So fast! Thanks a lot!

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