Remove an unnecessary fromIntegral
authorIan Lynagh <igloo@earth.li>
Sat, 20 Nov 2010 19:10:52 +0000 (19:10 +0000)
committerIan Lynagh <igloo@earth.li>
Sat, 20 Nov 2010 19:10:52 +0000 (19:10 +0000)
GHC/ConsoleHandler.hs

index abc2458..1d3c12f 100644 (file)
@@ -147,7 +147,7 @@ flushConsole h =
                         "handle is not a file descriptor" Nothing Nothing
       Just fd -> do
         throwErrnoIfMinus1Retry_ "flushConsole" $
-           flush_console_fd (fromIntegral (fdFD fd))
+           flush_console_fd (fdFD fd)
 
 foreign import ccall unsafe "consUtils.h flush_input_console__"
         flush_console_fd :: CInt -> IO CInt