com php-src: fixed array_slice(): ext/standard/array .c
| From: | Anatol Belski | Date: | Mon, 11 Nov 2013 08:40:29 +0000 |
| Subject: | com php-src: fixed array_slice(): ext/standard/array .c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-73932@lists.php.net to get a copy of this message | ||
Commit: 7e20b13d8687ae69d99bb2a92e591344cf5de001
Author: Anatol Belski <ab@php.net> Mon, 11 Nov 2013 09:40:29 +0100
Parents: 57ce464a1c335602bccb1c7b73e97189d745c6a0
Branches: str_size_and_int64
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=7e20b13d8687ae69d99bb2a92e591344cf5de001
Log:
fixed array_slice()
Changed paths:
M ext/standard/array.c
Diff:
diff --git a/ext/standard/array.c b/ext/standard/array.c
index 1774e1e..ef3cc47 100644
--- a/ext/standard/array.c
+++ b/ext/standard/array.c
@@ -2170,7 +2170,7 @@ PHP_FUNCTION(array_slice)
/* ..and the length */
if (length < 0) {
length = num_in - offset + length;
- } else if (((unsigned long) offset + (unsigned long) length) > (unsigned) num_in) {
+ } else if (((php_uint_t) offset + (php_uint_t) length) > (php_uint_t) num_in) {
length = num_in - offset;
}