svn: /pecl/yaf/trunk/ yaf_request.c yaf_request.h

From: Date: Mon, 27 Jun 2011 11:01:00 +0000
Subject: svn: /pecl/yaf/trunk/ yaf_request.c yaf_request.h
Groups: php.pecl.cvs 
Request: Send a blank email to pecl-cvs+get-15903@lists.php.net to get a copy of this message
laruence Mon, 27 Jun 2011 11:01:00 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=312517 Log: Added explicit type cast statement to avoid warning in vs9 on windows Changed paths: U pecl/yaf/trunk/yaf_request.c U pecl/yaf/trunk/yaf_request.h Modified: pecl/yaf/trunk/yaf_request.c =================================================================== --- pecl/yaf/trunk/yaf_request.c 2011-06-27 10:59:15 UTC (rev 312516) +++ pecl/yaf/trunk/yaf_request.c 2011-06-27 11:01:00 UTC (rev 312517) @@ -10,7 +10,7 @@ | obtain it through the world-wide-web, please send a note to | | license@php.net so we can mail you a copy immediately. | +----------------------------------------------------------------------+ - | Author: Laruence<laruence@yahoo.com.cn> | + | Author: Xinchen Hui <laruence@php.net> | +----------------------------------------------------------------------+ $Id$ */ @@ -297,7 +297,7 @@ while( *(seg) == ' ') seg++ ; /* Accept-Language: da, en-gb;q=0.8, en;q=0.7 */ if ((qvalue = strstr(seg, "q="))) { - float qval = zend_string_to_double(qvalue + 2, seg - qvalue + 2); + float qval = (float)zend_string_to_double(qvalue + 2, seg - qvalue + 2); if (qval > max_qvlaue) { max_qvlaue = qval; if (prefer) { Modified: pecl/yaf/trunk/yaf_request.h =================================================================== --- pecl/yaf/trunk/yaf_request.h 2011-06-27 10:59:15 UTC (rev 312516) +++ pecl/yaf/trunk/yaf_request.h 2011-06-27 11:01:00 UTC (rev 312517) @@ -10,7 +10,7 @@ | obtain it through the world-wide-web, please send a note to | | license@php.net so we can mail you a copy immediately. | +----------------------------------------------------------------------+ - | Author: Laruence<laruence@yahoo.com.cn> | + | Author: Xinchen Hui <laruence@php.net> | +----------------------------------------------------------------------+ $Id$ */

« previous php.pecl.cvs (#15903) next »