summaryrefslogtreecommitdiff
path: root/ext/intl/locale/locale_methods.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/intl/locale/locale_methods.c')
-rw-r--r--ext/intl/locale/locale_methods.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/ext/intl/locale/locale_methods.c b/ext/intl/locale/locale_methods.c
index f1821a6ada..bbecda8c28 100644
--- a/ext/intl/locale/locale_methods.c
+++ b/ext/intl/locale/locale_methods.c
@@ -373,7 +373,7 @@ static void get_icu_value_src_php( char* tag_name, INTERNAL_FUNCTION_PARAMETERS)
{
const char* loc_name = NULL;
- int loc_name_len = 0;
+ size_t loc_name_len = 0;
char* tag_value = NULL;
char* empty_result = "";
@@ -471,10 +471,10 @@ PHP_FUNCTION(locale_get_primary_language )
static void get_icu_disp_value_src_php( char* tag_name, INTERNAL_FUNCTION_PARAMETERS)
{
const char* loc_name = NULL;
- int loc_name_len = 0;
+ size_t loc_name_len = 0;
const char* disp_loc_name = NULL;
- int disp_loc_name_len = 0;
+ size_t disp_loc_name_len = 0;
int free_loc_name = 0;
UChar* disp_name = NULL;
@@ -1238,9 +1238,9 @@ static int strToMatch(const char* str ,char *retstr)
PHP_FUNCTION(locale_filter_matches)
{
char* lang_tag = NULL;
- int lang_tag_len = 0;
+ size_t lang_tag_len = 0;
const char* loc_range = NULL;
- int loc_range_len = 0;
+ size_t loc_range_len = 0;
int result = 0;
char* token = 0;
@@ -1529,7 +1529,7 @@ static char* lookup_loc_range(const char* loc_range, HashTable* hash_arr, int ca
PHP_FUNCTION(locale_lookup)
{
char* fallback_loc = NULL;
- int fallback_loc_len = 0;
+ size_t fallback_loc_len = 0;
const char* loc_range = NULL;
int loc_range_len = 0;
@@ -1582,7 +1582,7 @@ PHP_FUNCTION(locale_accept_from_http)
{
UEnumeration *available;
char *http_accept = NULL;
- int http_accept_len;
+ size_t http_accept_len;
UErrorCode status = 0;
int len;
char resultLocale[INTL_MAX_LOCALE_LEN+1];