com php-src: fix data type: ext/intl/locale/locale_methods. c
| From: | Anatol Belski | Date: | Tue, 26 Jul 2016 05:53:24 +0000 |
| Subject: | com php-src: fix data type: ext/intl/locale/locale_methods. c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-93399@lists.php.net to get a copy of this message | ||
Commit: 3958f7af004f62ddc50a98295af5002166ee748d
Author: Anatol Belski <ab@php.net> Mon, 25 Jul 2016 22:49:00 +0200
Parents: 4d2479202aef57d19e24c492bdabd0ac13474676
Branches: PHP-7.1 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=3958f7af004f62ddc50a98295af5002166ee748d
Log:
fix data type
Changed paths:
M ext/intl/locale/locale_methods.c
Diff:
diff --git a/ext/intl/locale/locale_methods.c b/ext/intl/locale/locale_methods.c
index 8c91beb...1d05e15 100644
--- a/ext/intl/locale/locale_methods.c
+++ b/ext/intl/locale/locale_methods.c
@@ -179,10 +179,10 @@ static zend_off_t getSingletonPos(const char* str)
{
zend_off_t result =-1;
zend_off_t i=0;
- zend_off_t len = 0;
+ size_t len = 0;
if( str && ((len=strlen(str))>0) ){
- for( i=0; i<len ; i++){
+ for( i=0; (size_t)i < len ; i++){
if( isIDSeparator(*(str+i)) ){
if( i==1){
/* string is of the form x-avy or a-prv1 */