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

Encoding Ints larger than 32-bits have issues #77

Open
Necried opened this issue Apr 23, 2019 · 1 comment
Open

Encoding Ints larger than 32-bits have issues #77

Necried opened this issue Apr 23, 2019 · 1 comment

Comments

@Necried
Copy link
Collaborator

Necried commented Apr 23, 2019

Elm seems to be able to represent integers above 32-bits. However, using the division (//) operator does not work, which results in incorrect encoding as those rely on division.

For example:

> 99999999999999999999 // 15
-1320856256 : Int
@CSchank
Copy link
Owner

CSchank commented Apr 24, 2019

We're going to investigate sending binary data instead of strings, so that would probably help fix this. Although, Elm makes no guarantees for bits 33 through 64 ;)

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