felipe Sun May 18 15:52:43 2008 UTC
Modified files:
/php-src/ext/standard array.c
Log:
- MFB: Making compatible with 64bit platform
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/array.c?r1=1.449&r2=1.450&diff_format=u
Index: php-src/ext/standard/array.c
diff -u php-src/ext/standard/array.c:1.449 php-src/ext/standard/array.c:1.450
--- php-src/ext/standard/array.c:1.449 Tue Apr 29 08:15:49 2008
+++ php-src/ext/standard/array.c Sun May 18 15:52:42 2008
@@ -21,7 +21,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: array.c,v 1.449 2008/04/29 08:15:49 dmitry Exp $ */
+/* $Id: array.c,v 1.450 2008/05/18 15:52:42 felipe Exp $ */
#include "php.h"
#include "php_ini.h"
@@ -2350,7 +2350,7 @@
/* ..and the length */
if (length < 0) {
length = num_in - offset + length;
- } else if (((unsigned) offset + (unsigned) length) > (unsigned) num_in)
{
+ } else if (((unsigned long) offset + (unsigned long) length) >
(unsigned) num_in) {
length = num_in - offset;
}
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php