should fix warnings under winblows.

This commit is contained in:
Sterling Hughes 2001-05-30 18:33:46 +00:00
parent 439038759b
commit 948edd322b

View File

@ -96,7 +96,7 @@ static char *ps_files_path_create(char *buf, size_t buflen, ps_files *data, cons
memcpy(buf, data->basedir, data->basedir_len);
n = data->basedir_len;
buf[n++] = PHP_DIR_SEPARATOR;
for (i = 0; i < data->dirdepth; i++) {
for (i = 0; i < (int) data->dirdepth; i++) {
buf[n++] = *p++;
buf[n++] = PHP_DIR_SEPARATOR;
}
@ -288,7 +288,7 @@ PS_WRITE_FUNC(files)
* the existing data set.
*/
if (vallen < data->st_size)
if ((int) vallen < data->st_size)
ftruncate(data->fd, 0);
#ifdef HAVE_PWRITE