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

Fix overflowed literals warning #24

Merged
merged 1 commit into from
Apr 12, 2017
Merged

Conversation

maoe
Copy link
Member

@maoe maoe commented Apr 12, 2017

If I compile with ghc-8.0.2-rc1 I get

src/GHC/RTS/EventTypes.hs:527:33: warning: [-Woverflowed-literals]
    Literal -1 is out of the Word16 range 0..65535
    |
527 |   guard $ fromIntegral cap /= (-1 :: Word16)
    | 

This is a fix for the issue.

@maoe
Copy link
Member Author

maoe commented Apr 12, 2017

The tests are passing. I'm going to merge this.

@maoe maoe merged commit 5a32200 into haskell:master Apr 12, 2017
@maoe maoe deleted the overflowed-literals branch April 12, 2017 22:21
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.

None yet

1 participant