From: Felipe Pena Date: Sun, 18 May 2008 15:52:42 +0000 (+0000) Subject: - MFB: Making compatible with 64bit platform X-Git-Tag: BEFORE_HEAD_NS_CHANGE~1738 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ad69a4c588653b3e6eb4fc388d1668d08d8ed36d;p=php - MFB: Making compatible with 64bit platform --- diff --git a/ext/standard/array.c b/ext/standard/array.c index 5a26eea0e5..d2e0d1156d 100644 --- a/ext/standard/array.c +++ b/ext/standard/array.c @@ -2350,7 +2350,7 @@ PHP_FUNCTION(array_slice) /* ..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; }