diff options
Diffstat (limited to 'System/Posix/User.hsc')
-rw-r--r-- | System/Posix/User.hsc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/System/Posix/User.hsc b/System/Posix/User.hsc index 5db9146..ce7a397 100644 --- a/System/Posix/User.hsc +++ b/System/Posix/User.hsc @@ -462,7 +462,7 @@ throwErrorIfNonZero_ loc act = do rc <- act if (rc == 0) then return () - else ioError (errnoToIOError loc (Errno (fromIntegral rc)) Nothing Nothing) + else ioError (errnoToIOError loc (Errno rc) Nothing Nothing) -- Used when a function returns NULL to indicate either an error or -- EOF, depending on whether the global errno is nonzero. |