Skip to content

Commit

Permalink
Replace unsigned long c with size_t c in fps_count (#271)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bodigrim authored Aug 27, 2020
1 parent 155bf8a commit 14db3e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cbits/fpstring.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ unsigned char fps_minimum(unsigned char *p, size_t len) {

/* count the number of occurences of a char in a string */
size_t fps_count(unsigned char *p, size_t len, unsigned char w) {
unsigned long c;
size_t c;
for (c = 0; len-- != 0; ++p)
if (*p == w)
++c;
Expand Down

0 comments on commit 14db3e4

Please sign in to comment.