summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Joye <pajoye@php.net>2009-07-20 09:42:52 +0000
committerPierre Joye <pajoye@php.net>2009-07-20 09:42:52 +0000
commit36699da4167d696cdc8cf020c6bfa1a1b2ea5dd5 (patch)
treef4c2325724bafd5b24ea14984c9eaba8e0c47470
parentd3eb9ac31417d78013edbbef5f0fd095ce0ad99c (diff)
downloadphp-git-36699da4167d696cdc8cf020c6bfa1a1b2ea5dd5.tar.gz
- silent auto casting warnings
-rw-r--r--ext/unicode/unicode.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/unicode/unicode.c b/ext/unicode/unicode.c
index 6a0fc09c45..778ed11d41 100644
--- a/ext/unicode/unicode.c
+++ b/ext/unicode/unicode.c
@@ -57,7 +57,7 @@ static PHP_FUNCTION(unicode_decode)
RETURN_FALSE;
}
- zend_set_converter_error_mode(conv, ZEND_TO_UNICODE, flags);
+ zend_set_converter_error_mode(conv, ZEND_TO_UNICODE, (uint16_t) flags);
status = U_ZERO_ERROR;
num_conv = zend_string_to_unicode_ex(conv, &dest, &dest_len, str, str_len, &status);
@@ -107,7 +107,7 @@ static PHP_FUNCTION(unicode_encode)
RETURN_FALSE;
}
- zend_set_converter_error_mode(conv, ZEND_FROM_UNICODE, flags);
+ zend_set_converter_error_mode(conv, ZEND_FROM_UNICODE, (uint16_t) flags);
zend_set_converter_subst_char(conv, UG(from_subst_char));
status = U_ZERO_ERROR;
@@ -148,9 +148,9 @@ PHP_FUNCTION(unicode_set_error_mode)
}
if (direction == ZEND_FROM_UNICODE) {
- UG(from_error_mode) = mode;
+ UG(from_error_mode) = (uint16_t) mode;
} else {
- UG(to_error_mode) = mode;
+ UG(to_error_mode) = (uint16_t) mode;
}
zend_update_converters_error_behavior(TSRMLS_C);