FFI Report, CVS Id 1.11

Marcin 'Qrczak' Kowalczyk qrczak at knm.org.pl
Fri Aug 24 15:27:21 EDT 2001


24 Aug 2001 12:20:41 -0600, Alastair David Reid <reid at cs.utah.edu> pisze:

>   Let's add some asserts to the affected code so that we'll get warnings
>   when we try to compile the code on a system that breaks these assumptions.
>   Something like this:
> 
>   #if SIZEOF_INT != SIZEOF_PTR
>   #error "Pointer difference operation could overflow - please fix"
>   #endif

In ghc Int always has the same size as the pointer. Or did you mean
something other?

-- 
 __("<  Marcin Kowalczyk * qrczak at knm.org.pl http://qrczak.ids.net.pl/
 \__/
  ^^                      SYGNATURA ZASTÊPCZA
QRCZAK





More information about the FFI mailing list