Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions strings/ctype-mb.c
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ int my_wildcmp_mb(CHARSET_INFO *cs,
}


size_t my_numchars_mb(CHARSET_INFO *cs __attribute__((unused)),
size_t my_numchars_mb(CHARSET_INFO *cs,
const char *pos, const char *end)
{
register size_t count= 0;
Expand All @@ -315,7 +315,7 @@ size_t my_numchars_mb(CHARSET_INFO *cs __attribute__((unused)),
}


size_t my_charpos_mb(CHARSET_INFO *cs __attribute__((unused)),
size_t my_charpos_mb(CHARSET_INFO *cs,
const char *pos, const char *end, size_t length)
{
const char *start= pos;
Expand All @@ -326,7 +326,7 @@ size_t my_charpos_mb(CHARSET_INFO *cs __attribute__((unused)),
pos+= (mb_len= my_ismbchar(cs, pos, end)) ? mb_len : 1;
length--;
}
return (size_t) (length ? end+2-start : pos-start);
return (size_t) (length ? (end-start)+2 : pos-start);
}


Expand Down