Skip to content

Commit

Permalink
Add cast
Browse files Browse the repository at this point in the history
  • Loading branch information
thbeu committed Mar 9, 2024
1 parent 7dedb64 commit 8b8ea5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shputils.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ double xshift = 0, yshift = 0; /* NO SHIFT */
/* -------------------------------------------------------------------- */
void setext(char *pt, const char *ext)
{
int i = strlen(pt) - 1;
int i = (int)(strlen(pt) - 1);
for (; i > 0 && pt[i] != '.' && pt[i] != '/' && pt[i] != '\\'; i--)
{
}
Expand Down Expand Up @@ -278,7 +278,7 @@ void mergefields()
int strncasecmp2(char *s1, char *s2, int n)
{
if (n < 1)
n = strlen(s1) + 1;
n = (int)(strlen(s1) + 1);

for (int i = 0; i < n; i++)
{
Expand Down

0 comments on commit 8b8ea5d

Please sign in to comment.