From a13dc3ae2ac2f61c5170cc4407e5634ece415015 Mon Sep 17 00:00:00 2001 From: Xuefer Date: Sat, 7 Oct 2006 04:55:05 +0000 Subject: [PATCH] avoid 64bit compiler warning git-svn-id: svn://svn.lighttpd.net/xcache/trunk@224 c26eb9a1-5813-0410-bd6c-c2e55f420ca7 --- xcache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xcache.c b/xcache.c index 05233d5..3fc741d 100644 --- a/xcache.c +++ b/xcache.c @@ -566,7 +566,7 @@ static zend_op_array *xc_entry_install(xc_entry_t *xce, zend_file_handle *h TSRM zend_class_entry *ce = CestToCePtr(ci->cest); /* fix pointer to the be which inside class_table */ if (ce->parent) { - zend_uint class_idx = (/* class_num */ (int) ce->parent) - 1; + zend_uint class_idx = (/* class_num */ (int) (long) ce->parent) - 1; assert(class_idx < i); ci->cest.parent = new_cest_ptrs[class_idx]; }