From ad69a4c588653b3e6eb4fc388d1668d08d8ed36d Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Sun, 18 May 2008 15:52:42 +0000 Subject: [PATCH] - MFB: Making compatible with 64bit platform --- ext/standard/array.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.50.1