logo       

Re: [GHC] #765: x86_64 NCG goes via unsigned for FFI Int return types.: msg#00036

lang.haskell.glasgow.bugs

Subject: Re: [GHC] #765: x86_64 NCG goes via unsigned for FFI Int return types.

#765: x86_64 NCG goes via unsigned for FFI Int return types.
------------------------------------------+---------------------------------
Reporter: duncan.coutts@xxxxxxxxxxxxx | Owner:
Type: bug | Status: new
Priority: high | Milestone:
Component: Compiler (NCG) | Version: 6.4.2
Severity: normal | Resolution:
Keywords: | Os: Linux
Difficulty: Unknown | Architecture: x86_64 (amd64)
------------------------------------------+---------------------------------
Comment (by guest):

Note that if we declare the foreign import with CInt then we get the right
answer.

{{{
foreign import ccall unsafe "c_id" c_id :: CInt -> IO CInt
}}}

--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/765>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@xxxxxxxxxxx
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise