haskell / ghc-events

Library and tool for parsing .eventlog files from GHC
http://www.haskell.org/haskellwiki/ThreadScope
Other
33 stars 34 forks source link

Fix overflowed literals warning #24

Closed maoe closed 7 years ago

maoe commented 7 years ago

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 commented 7 years ago

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