We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
foreign import ccall
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:
sbs_elem_index
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 CPtrdiff
Notice that for the second argument we have Word8 on the Haskell side and int on the C side.
Word8
int
I will audit our foreign imports for similar mistakes.
The text was updated successfully, but these errors were encountered:
Fix known type mismatch in sbs_elem_index
1160798
See haskell#653. A complete audit has not been done, but let's just fix the known bug anyway.
Fix known type mismatch in sbs_elem_index (#661)
418515e
See #653. A complete audit has not been done, but let's just fix the known bug anyway.
e77df71
See #653. A complete audit has not been done, but let's just fix the known bug anyway. (cherry picked from commit 418515e)
clyring
No branches or pull requests
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:Notice that for the second argument we have
Word8
on the Haskell side andint
on the C side.I will audit our foreign imports for similar mistakes.
The text was updated successfully, but these errors were encountered: