Skip to content

Commit

Permalink
Fix known type mismatch in sbs_elem_index (#661)
Browse files Browse the repository at this point in the history
See #653.  A complete audit has not been done,
but let's just fix the known bug anyway.

(cherry picked from commit 418515e)
  • Loading branch information
clyring committed Feb 15, 2024
1 parent ec7c738 commit e77df71
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 e77df71

Please sign in to comment.