From: havoc Date: Tue, 5 Jul 2005 13:00:16 +0000 (+0000) Subject: more warnings fixed X-Git-Tag: xonotic-v0.1.0preview~4682 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=1a7d8abc3f25b6c33757358a6e467a8683e2a6b0;p=xonotic%2Fdarkplaces.git more warnings fixed git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5504 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/fs.c b/fs.c index 36cca0e4..98b12b58 100644 --- a/fs.c +++ b/fs.c @@ -2185,7 +2185,7 @@ fssearch_t *FS_Search(const char *pattern, int caseinsensitive, int quiet) for (listtemp = liststart;listtemp;listtemp = listtemp->next) { numfiles++; - numchars += strlen(listtemp->text) + 1; + numchars += (int)strlen(listtemp->text) + 1; } search = Z_Malloc(sizeof(fssearch_t) + numchars + numfiles * sizeof(char *)); search->filenames = (char **)((char *)search + sizeof(fssearch_t)); @@ -2198,7 +2198,7 @@ fssearch_t *FS_Search(const char *pattern, int caseinsensitive, int quiet) search->filenames[numfiles] = search->filenamesbuffer + numchars; strcpy(search->filenames[numfiles], listtemp->text); numfiles++; - numchars += strlen(listtemp->text) + 1; + numchars += (int)strlen(listtemp->text) + 1; } if (liststart) stringlistfree(liststart); @@ -2239,7 +2239,7 @@ int FS_ListDirectory(const char *pattern, int oneperline) columnwidth = 0; for (i = 0;i < numfiles;i++) { - l = strlen(search->filenames[i]); + l = (int)strlen(search->filenames[i]); if (columnwidth < l) columnwidth = l; }