GHC FFI Return Type Bug

Marcin 'Qrczak' Kowalczyk qrczak@knm.org.pl
10 Sep 2001 20:34:59 GMT


10 Sep 2001 13:20:33 -0600, Alastair David Reid <reid@cs.utah.edu> 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 * qrczak@knm.org.pl http://qrczak.ids.net.pl/
 \__/
  ^^                      SYGNATURA ZASTĘPCZA
QRCZAK