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

diagrams-lib-1.4.0.1 versus 32 bit platforms #289

Closed
peti opened this issue Mar 4, 2017 · 1 comment
Closed

diagrams-lib-1.4.0.1 versus 32 bit platforms #289

peti opened this issue Mar 4, 2017 · 1 comment

Comments

@peti
Copy link

peti commented Mar 4, 2017

I get the following warning on i686 platforms, which looks kinda serious:

src/Diagrams/Backend/CmdLine.hs:612:21: warning: [-Woverflowed-literals]
    Literal 5000000000000 is out of the Int range -2147483648..2147483647
@byorgey byorgey closed this as completed in c87efa4 Mar 5, 2017
@byorgey
Copy link
Member

byorgey commented Mar 5, 2017

Thanks! It turns out that number just so happens to overflow to a positive 32-bit int, and it was used as an argument to forever . threadDelay, so in fact I don't think this should have caused any erroneous behavior. But on principle I certainly agree this is bad!

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