pajoye          Mon, 20 Jul 2009 09:42:52 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=284419

Changed paths:
        U   php/php-src/trunk/ext/unicode/unicode.c

Log:
- silent auto casting warnings

Modified: php/php-src/trunk/ext/unicode/unicode.c
===================================================================
--- php/php-src/trunk/ext/unicode/unicode.c     2009-07-20 09:34:15 UTC (rev 
284418)
+++ php/php-src/trunk/ext/unicode/unicode.c     2009-07-20 09:42:52 UTC (rev 
284419)
@@ -57,7 +57,7 @@
                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 @@
                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 @@
        }

        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);

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to