summaryrefslogtreecommitdiff
path: root/ext/intl/common/common_error.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/intl/common/common_error.c')
-rw-r--r--ext/intl/common/common_error.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/intl/common/common_error.c b/ext/intl/common/common_error.c
index fbdf82ed9c..126c9cc35b 100644
--- a/ext/intl/common/common_error.c
+++ b/ext/intl/common/common_error.c
@@ -48,10 +48,10 @@ PHP_FUNCTION( intl_get_error_message )
*/
PHP_FUNCTION( intl_is_failure )
{
- long err_code;
+ php_int_t err_code;
/* Parse parameters. */
- if( zend_parse_parameters( ZEND_NUM_ARGS() TSRMLS_CC, "l",
+ if( zend_parse_parameters( ZEND_NUM_ARGS() TSRMLS_CC, "i",
&err_code ) == FAILURE )
{
intl_error_set( NULL, U_ILLEGAL_ARGUMENT_ERROR,
@@ -70,10 +70,10 @@ PHP_FUNCTION( intl_is_failure )
*/
PHP_FUNCTION( intl_error_name )
{
- long err_code;
+ php_int_t err_code;
/* Parse parameters. */
- if( zend_parse_parameters( ZEND_NUM_ARGS() TSRMLS_CC, "l",
+ if( zend_parse_parameters( ZEND_NUM_ARGS() TSRMLS_CC, "i",
&err_code ) == FAILURE )
{
intl_error_set( NULL, U_ILLEGAL_ARGUMENT_ERROR,