summaryrefslogtreecommitdiff
path: root/ext/intl/breakiterator/breakiterator_iterators.cpp
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2014-08-19 22:57:17 +0200
committerAnatol Belski <ab@php.net>2014-08-19 22:57:17 +0200
commit063079b62e383036dd24cd6465d3db31edf6cb6d (patch)
treefdbf5ac3e408fbd7ef46be5ffc3d65b33eaccc24 /ext/intl/breakiterator/breakiterator_iterators.cpp
parent729bce4321b54e7054a88c0d90f4d102729ba570 (diff)
downloadphp-git-063079b62e383036dd24cd6465d3db31edf6cb6d.tar.gz
ported ext/intl, bugfixes to go
Diffstat (limited to 'ext/intl/breakiterator/breakiterator_iterators.cpp')
-rw-r--r--ext/intl/breakiterator/breakiterator_iterators.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/intl/breakiterator/breakiterator_iterators.cpp b/ext/intl/breakiterator/breakiterator_iterators.cpp
index efd5c27811..c04e33e11b 100644
--- a/ext/intl/breakiterator/breakiterator_iterators.cpp
+++ b/ext/intl/breakiterator/breakiterator_iterators.cpp
@@ -67,7 +67,7 @@ static void _breakiterator_move_forward(zend_object_iterator *iter TSRMLS_DC)
int32_t pos = biter->next();
if (pos != BreakIterator::DONE) {
- ZVAL_INT(&zoi_iter->current, (long)pos);
+ ZVAL_INT(&zoi_iter->current, (php_int_t)pos);
} //else we've reached the end of the enum, nothing more is required
}
@@ -77,7 +77,7 @@ static void _breakiterator_rewind(zend_object_iterator *iter TSRMLS_DC)
zoi_with_current *zoi_iter = (zoi_with_current*)iter;
int32_t pos = biter->first();
- ZVAL_INT(&zoi_iter->current, (long)pos);
+ ZVAL_INT(&zoi_iter->current, (php_int_t)pos);
}
static zend_object_iterator_funcs breakiterator_iterator_funcs = {