Index: trunk/mod_cacher/xc_cacher.c
===================================================================
--- trunk/mod_cacher/xc_cacher.c	(revision 1199)
+++ trunk/mod_cacher/xc_cacher.c	(revision 1201)
@@ -411,5 +411,5 @@
 	time_t n = XG(request_time) / interval;
 	if (*curtime != n) {
-		zend_uint target_slot = n % count;
+		zend_uint target_slot = ((zend_uint) n) % count;
 		zend_uint slot;
 		for (slot = advance_wrapped(*curslot, count);
@@ -449,5 +449,5 @@
 {
 	xc_entry_t *p, **pp;
-	int i, c;
+	size_t i, c;
 
 	for (i = 0, c = cache->hentry->size; i < c; i ++) {
@@ -517,5 +517,5 @@
 static void xc_gc_expires_var(TSRMLS_D) /* {{{ */
 {
-	int i, c;
+	size_t i, c;
 
 	if (!xc_var_gc_interval || !xc_var_caches) {
@@ -736,5 +736,5 @@
 {
 	zval* list;
-	int i, c;
+	size_t i, c;
 	xc_entry_t *e;
 
@@ -934,5 +934,5 @@
 	char *tokbuf;
 	size_t path_buffer_len;
-	int size;
+	size_t size;
 	char tokens[] = { DEFAULT_DIR_SEPARATOR, '\0' };
 	int ret;
@@ -969,5 +969,5 @@
 	if (zend_is_executing(TSRMLS_C)) {
 		const char *executing_filename = zend_get_executed_filename(TSRMLS_C);
-		int dirname_len = strlen(executing_filename);
+		int dirname_len = (int) strlen(executing_filename);
 		size_t filename_len = strlen(filepath);
 
@@ -1066,5 +1066,5 @@
 
 	compiler->new_entry.entry.name.str.val = xc_expand_url(filepath, compiler->opened_path_buffer TSRMLS_CC);
-	compiler->new_entry.entry.name.str.len = strlen(compiler->new_entry.entry.name.str.val);
+	compiler->new_entry.entry.name.str.len = (int) strlen(compiler->new_entry.entry.name.str.val);
 
 	*entry_checker_data->stored_entry = (xc_entry_php_t *) xc_entry_find_unlocked(
@@ -1144,5 +1144,5 @@
 	else {
 #ifdef ZEND_ENGINE_2_3
-		char *opened_path = php_resolve_path(compiler->filename, compiler->filename_len, PG(include_path) TSRMLS_CC);
+		char *opened_path = php_resolve_path(compiler->filename, (int) compiler->filename_len, PG(include_path) TSRMLS_CC);
 		if (opened_path) {
 			strcpy(compiler->opened_path_buffer, opened_path);
@@ -1182,5 +1182,5 @@
 
 		delta = XG(request_time) - buf.st_mtime;
-		if (abs(delta) < 2 && !xc_test) {
+		if (abs((int) delta) < 2 && !xc_test) {
 			return FAILURE;
 		}
@@ -1214,5 +1214,5 @@
 			++basename_begin;
 
-			basename_hash_value = HASH_STR_L(basename_begin, filename_end - basename_begin);
+			basename_hash_value = HASH_STR_L(basename_begin, (uint) (filename_end - basename_begin));
 		}
 
@@ -1254,5 +1254,5 @@
 
 	PHP_MD5Init(&context);
-	while ((n = php_stream_read(stream, (char *) buf, sizeof(buf))) > 0) {
+	while ((n = php_stream_read(stream, (char *) buf, (int) sizeof(buf))) > 0) {
 		PHP_MD5Update(&context, buf, n);
 	}
