[Git][ghc/ghc][wip/T24601] Fix type of _get_osfhandle foreign import

Ben Gamari (@bgamari) gitlab at gitlab.haskell.org
Thu Mar 28 15:54:02 UTC 2024



Ben Gamari pushed to branch wip/T24601 at Glasgow Haskell Compiler / GHC


Commits:
128775ee by Ben Gamari at 2024-03-28T11:53:57-04:00
Fix type of _get_osfhandle foreign import

Fixes #24601.

- - - - -


1 changed file:

- compiler/GHC/Runtime/Utils.hs


Changes:

=====================================
compiler/GHC/Runtime/Utils.hs
=====================================
@@ -29,7 +29,7 @@ foreign import ccall "io.h _close"
    c__close :: CInt -> IO CInt
 
 foreign import ccall unsafe "io.h _get_osfhandle"
-   _get_osfhandle :: CInt -> IO CInt
+   _get_osfhandle :: CInt -> IO CIntPtr
 
 runWithPipesPOSIX :: (CreateProcess -> IO ProcessHandle)
                   -> FilePath -> [String] -> [String] -> IO (ProcessHandle, Handle, Handle)



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/128775eea1cdc2d569a8a8dd0b1bb4ceac903851

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/128775eea1cdc2d569a8a8dd0b1bb4ceac903851
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20240328/e386531a/attachment.html>


More information about the ghc-commits mailing list