diff options
author | Anatol Belski <ab@php.net> | 2014-08-19 22:57:17 +0200 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2014-08-19 22:57:17 +0200 |
commit | 063079b62e383036dd24cd6465d3db31edf6cb6d (patch) | |
tree | fdbf5ac3e408fbd7ef46be5ffc3d65b33eaccc24 /ext/intl/breakiterator/breakiterator_iterators.cpp | |
parent | 729bce4321b54e7054a88c0d90f4d102729ba570 (diff) | |
download | php-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.cpp | 4 |
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 = { |