Skip to content

Commit

Permalink
Fix known type mismatch in sbs_elem_index
Browse files Browse the repository at this point in the history
See haskell#653.  A complete audit has not been done,
but let's just fix the known bug anyway.
  • Loading branch information
clyring committed Feb 14, 2024
1 parent d497f39 commit 1160798
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cbits/shortbytestring.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include <assert.h>
#include <stddef.h>
#include <stdint.h>
#include <string.h>


Expand All @@ -20,7 +21,7 @@ sbs_memcmp_off(const void *s1,

ptrdiff_t
sbs_elem_index(const void *s,
int c,
uint8_t c,
size_t n)
{
const void *so = memchr(s, c, n);
Expand Down

0 comments on commit 1160798

Please sign in to comment.