but these don't match on amd64 Linux (int is 32bit and Int is 64bit).
Should probably be size_t in the C and CSize in the FFI import.
(Also to be pedantic it should be CDouble, which you can cast efficiently using coerce which should fail to compile on systems where Double /= CDouble, but I don't know if any exist. realToFrac is the wrong thing to use.)
There is:
and
but these don't match on amd64 Linux (
int
is 32bit andInt
is 64bit).Should probably be
size_t
in the C andCSize
in the FFI import.(Also to be pedantic it should be
CDouble
, which you can cast efficiently usingcoerce
which should fail to compile on systems whereDouble /= CDouble
, but I don't know if any exist.realToFrac
is the wrong thing to use.)