]> granicus.if.org Git - php/commitdiff
fix data type
authorAnatol Belski <ab@php.net>
Mon, 25 Jul 2016 20:49:00 +0000 (22:49 +0200)
committerAnatol Belski <ab@php.net>
Tue, 26 Jul 2016 05:53:24 +0000 (07:53 +0200)
ext/intl/locale/locale_methods.c

index 8c91beb861ac5b02c8efb2d0ca4a003870815307..1d05e1588917678bec31cc94312e59d0255e4653 100644 (file)
@@ -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 */