Skip to content

Commit

Permalink
Fixed warnings about sign mismatches in sys_reslocator.c
Browse files Browse the repository at this point in the history
  • Loading branch information
danij-deng committed Aug 5, 2011
1 parent 0375eed commit 4e718b2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions doomsday/engine/portable/src/sys_reslocator.c
Expand Up @@ -1205,7 +1205,7 @@ const char* F_FindFileExtension(const char* path)
*(p - 1) == DIR_WRONG_SEP_CHAR)
break;
if(*p == '.')
return p - path < len - 1? p + 1 : NULL;
return (unsigned) (p - path) < len - 1? p + 1 : NULL;
} while(--p > path);
}
}
Expand Down Expand Up @@ -1299,14 +1299,14 @@ boolean F_RemoveBasePath(ddstring_t* dst, const ddstring_t* absPath)
{
ddstring_t buf;
Str_Init(&buf);
Str_PartAppend(&buf, Str_Text(absPath), strlen(ddBasePath), Str_Length(absPath) - strlen(ddBasePath));
Str_PartAppend(&buf, Str_Text(absPath), (int)strlen(ddBasePath), Str_Length(absPath) - (int)strlen(ddBasePath));
Str_Set(dst, Str_Text(&buf));
Str_Free(&buf);
return true;
}

Str_Clear(dst);
Str_PartAppend(dst, Str_Text(absPath), strlen(ddBasePath), Str_Length(absPath) - strlen(ddBasePath));
Str_PartAppend(dst, Str_Text(absPath), (int)strlen(ddBasePath), Str_Length(absPath) - (int)strlen(ddBasePath));
return true;
}

Expand Down Expand Up @@ -1492,9 +1492,9 @@ const char* F_PrettyPath(const char* path)
static uint index = 0;

ddstring_t* buf = NULL;
size_t len;
int len;

if(NULL == path || 0 == (len = strlen(path)))
if(NULL == path || 0 == (len = (int)strlen(path)))
return path;

// Hide relative directives like '}'
Expand Down

0 comments on commit 4e718b2

Please sign in to comment.