-
Notifications
You must be signed in to change notification settings - Fork 143
Open
Labels
Description
In this comment it was noticed that we have a mismatch between the actual C prototype of sbs_elem_index and the foreign import in our Haskell code:
ptrdiff_t
sbs_elem_index(const void *s,
int c,
size_t n)
{ // ...foreign import ccall unsafe "static sbs_elem_index"
c_elem_index :: ByteArray# -> Word8 -> CSize -> IO CPtrdiffNotice that for the second argument we have Word8 on the Haskell side and int on the C side.
I will audit our foreign imports for similar mistakes.