From: Harald Radi Date: Sun, 10 Jun 2001 23:26:35 +0000 (+0000) Subject: removed warnings X-Git-Tag: PRE_GRANULAR_GARBAGE_FIX~90 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=22790c96021cdf602445983912f814424b4b7a64;p=php removed warnings --- diff --git a/ext/session/mod_files.c b/ext/session/mod_files.c index 5894289165..5ed3e0aa4d 100644 --- a/ext/session/mod_files.c +++ b/ext/session/mod_files.c @@ -98,7 +98,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; } @@ -290,7 +290,7 @@ PS_WRITE_FUNC(files) * the existing data set. */ - if (vallen < data->st_size) + if (vallen < (int)data->st_size) ftruncate(data->fd, 0); #ifdef HAVE_PWRITE diff --git a/ext/session/session.c b/ext/session/session.c index 52ed8fba10..4f741f428a 100644 --- a/ext/session/session.c +++ b/ext/session/session.c @@ -303,7 +303,7 @@ PS_SERIALIZER_ENCODE_FUNC(php_binary) php_var_serialize(buf, struc, &var_hash); } else { if (key_length > PS_BIN_MAX) continue; - strbuf[0] = (unsigned char) key_length & PS_BIN_UNDEF; + strbuf[0] = (unsigned char) (key_length & PS_BIN_UNDEF); memcpy(strbuf + 1, key, key_length); STR_CAT(buf, strbuf, key_length + 1);