Skip to content

File size as Double #241

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

Merged
merged 1 commit into from
Aug 17, 2016
Merged

File size as Double #241

merged 1 commit into from
Aug 17, 2016

Conversation

Starzu
Copy link
Contributor

@Starzu Starzu commented Aug 16, 2016

It's possible to select a file bigger than 2GB.

@sjrd
Copy link
Member

sjrd commented Aug 16, 2016

This is most certainly incorrect, as Longs are not JavaScript numbers. If JS numbers larger than Int.MaxValue are to be accepted, then the type must be Double.

It's possible to select a file bigger than 2GB.
@Starzu Starzu changed the title File size as Long File size as Double Aug 16, 2016
@Starzu
Copy link
Contributor Author

Starzu commented Aug 16, 2016

@sjrd Right, my bad. ;)

@ritschwumm
Copy link

i think i'd still like an Int53 type i could use in these situations...

@mseddon
Copy link
Contributor

mseddon commented Aug 16, 2016

@ritschwumm see scala-js/scala-js#2170 for a possible implementation.

@sjrd
Copy link
Member

sjrd commented Aug 17, 2016

LGTM

@sjrd sjrd merged commit 9745e00 into scala-js:master Aug 17, 2016
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

Successfully merging this pull request may close these issues.

4 participants