com php-src: change to more suitable datatypes: ext/intl/locale /locale_methods.c
| From: | Anatol Belski | Date: | Mon, 25 Jul 2016 12:46:20 +0000 |
| Subject: | com php-src: change to more suitable datatypes: ext/intl/locale /locale_methods.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-93390@lists.php.net to get a copy of this message | ||
Commit: 198c2ec5f0d9a52c9cb4213dd92c40d87a3dd473
Author: Anatol Belski <ab@php.net> Mon, 25 Jul 2016 14:19:33 +0200
Parents: 2abb56e0bd331da072c77fe6412a8084ac43ffc6
Branches: PHP-7.1 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=198c2ec5f0d9a52c9cb4213dd92c40d87a3dd473
Log:
change to more suitable datatypes
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 5a0c715..08894e9 100644
--- a/ext/intl/locale/locale_methods..c
+++ b/ext/intl/locale/locale_methods.c
@@ -124,7 +124,7 @@ static int16_t findOffset(const char* const* list, const char* key)
static char* getPreferredTag(const char* gf_tag)
{
char* result = NULL;
- int grOffset = 0;
+ zend_off_t grOffset = 0;
grOffset = findOffset( LOC_GRANDFATHERED ,gf_tag);
if(grOffset < 0) {
@@ -175,11 +175,11 @@ static zend_off_t getStrrtokenPos(char* str, zend_off_t savedPos)
* returns -1 if no singleton
* strtok equivalent search for singleton
*/
-static int getSingletonPos(const char* str)
+static zend_off_t getSingletonPos(const char* str)
{
- int result =-1;
- int i=0;
- int len = 0;
+ zend_off_t result =-1;
+ zend_off_t i=0;
+ zend_off_t len = 0;
if( str && ((len=strlen(str))>0) ){
for( i=0; i<len ; i++){