From 75013592ee426a6562a565525d06ad35a8809c40 Mon Sep 17 00:00:00 2001 From: Xuefer Date: Sun, 16 Jul 2006 06:30:58 +0000 Subject: [PATCH] kill compiler warnings git-svn-id: svn://svn.lighttpd.net/xcache/trunk@91 c26eb9a1-5813-0410-bd6c-c2e55f420ca7 --- processor/processor.m4 | 4 ++-- xcache.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/processor/processor.m4 b/processor/processor.m4 index 77a5179..e49c035 100644 --- a/processor/processor.m4 +++ b/processor/processor.m4 @@ -464,7 +464,7 @@ DEF_STRUCT_P_FUNC(`zend_op_array', , `dnl {{{ IFRESTORE(` #ifdef ZEND_ENGINE_2 if (dst->scope) { - dst->scope = xc_get_class(processor, (int) dst->scope); + dst->scope = xc_get_class(processor, (zend_ulong) dst->scope); xc_fix_method(processor, dst); } #endif @@ -484,7 +484,7 @@ DEF_STRUCT_P_FUNC(`zend_op_array', , `dnl {{{ #ifdef ZEND_ENGINE_2 IFRESTORE(` if (dst->scope) { - dst->scope = xc_get_class(processor, (int) dst->scope); + dst->scope = xc_get_class(processor, (zend_ulong) dst->scope); xc_fix_method(processor, dst); } DONE(scope) diff --git a/xcache.c b/xcache.c index 71f4939..e0b00b1 100644 --- a/xcache.c +++ b/xcache.c @@ -1141,7 +1141,7 @@ static int xcache_admin_auth_check(TSRMLS_D) /* {{{ */ unsigned char digest[16]; PHP_MD5Init(&context); - PHP_MD5Update(&context, Z_STRVAL_PP(pass), Z_STRLEN_PP(pass)); + PHP_MD5Update(&context, (unsigned char *) Z_STRVAL_PP(pass), Z_STRLEN_PP(pass)); PHP_MD5Final(digest, &context); md5str[0] = '\0';