GHC FFI Return Type Bug
Marcin 'Qrczak' Kowalczyk
10 Sep 2001 20:34:59 GMT
10 Sep 2001 13:20:33 -0600, Alastair David Reid <firstname.lastname@example.org> pisze:
> So GHC's Int/Word implementation is different from Hugs'? Hugs
> represents Word8 (say) by a 32 bit int but doesn't guarantee that the
> top 24 bits are all zero.
GHC does similarly, except that it does guarantee that unused bits
are zero. Or one - in negative numbers. In other words it represents
value x of type Int8 as if converted to Int.
__("< Marcin Kowalczyk * email@example.com http://qrczak.ids.net.pl/
^^ SYGNATURA ZASTĘPCZA