Skip to content

Commit

Permalink
cast array subscript
Browse files Browse the repository at this point in the history
  • Loading branch information
= committed Aug 12, 2024
1 parent 5377fda commit 18238fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/strings.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ size_t i;

for(i = 0; i < len; i++)
{
if(!isxdigit(str[i])) return false;
if(!isxdigit((unsigned char)str[i])) return false;
}
return true;
}
Expand Down

0 comments on commit 18238fc

Please sign in to comment.