summaryrefslogtreecommitdiff
path: root/ext/intl/resourcebundle/resourcebundle.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/intl/resourcebundle/resourcebundle.c')
-rw-r--r--ext/intl/resourcebundle/resourcebundle.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/intl/resourcebundle/resourcebundle.c b/ext/intl/resourcebundle/resourcebundle.c
index 66978eb888..8f6025bcb1 100644
--- a/ext/intl/resourcebundle/resourcebundle.c
+++ b/ext/intl/resourcebundle/resourcebundle.c
@@ -53,7 +53,7 @@ void resourcebundle_extract_value( zval *return_value, ResourceBundle_object *so
case URES_INT:
lfield = ures_getInt( source->child, &INTL_DATA_ERROR_CODE(source) );
INTL_METHOD_CHECK_STATUS(source, "Failed to retrieve integer value");
- ZVAL_LONG( return_value, lfield );
+ ZVAL_INT( return_value, lfield );
break;
case URES_INT_VECTOR:
@@ -61,7 +61,7 @@ void resourcebundle_extract_value( zval *return_value, ResourceBundle_object *so
INTL_METHOD_CHECK_STATUS(source, "Failed to retrieve vector value");
array_init( return_value );
for (i=0; i<ilen; i++) {
- add_next_index_long( return_value, vfield[i] );
+ add_next_index_int( return_value, vfield[i] );
}
break;