]> granicus.if.org Git - php/commitdiff
- MFB: Making compatible with 64bit platform
authorFelipe Pena <felipe@php.net>
Sun, 18 May 2008 15:52:42 +0000 (15:52 +0000)
committerFelipe Pena <felipe@php.net>
Sun, 18 May 2008 15:52:42 +0000 (15:52 +0000)
ext/standard/array.c

index 5a26eea0e5424032df38ce8021a92d4053ddf402..d2e0d1156dec67f50e2a0322c56a64e5f4f0052a 100644 (file)
@@ -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;
        }