summaryrefslogtreecommitdiff
path: root/core/src/xmake/string
diff options
context:
space:
mode:
authorruki <[email protected]>2019-02-08 23:45:06 +0800
committerruki <[email protected]>2019-02-08 16:30:39 +0800
commit9342904338fe355892decb82b8b9fc4d3273d9be (patch)
tree5390b307c01374ea5722594dd1a0e682b45a8e4c /core/src/xmake/string
parent04f4888bf721d9d78b0feb56c392122966a36a4e (diff)
update tbox
Diffstat (limited to 'core/src/xmake/string')
-rw-r--r--core/src/xmake/string/convert.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/xmake/string/convert.c b/core/src/xmake/string/convert.c
index 4fb03692a..90a0bd6d3 100644
--- a/core/src/xmake/string/convert.c
+++ b/core/src/xmake/string/convert.c
@@ -74,7 +74,7 @@ static xm_charset_entry_ref_t xm_string_charset_find_by_name(tb_char_t const* na
{
// make iterator
tb_array_iterator_t array_iterator;
- tb_iterator_ref_t iterator = tb_iterator_make_for_mem(&array_iterator, g_charsets, tb_arrayn(g_charsets), sizeof(xm_charset_entry_t));
+ tb_iterator_ref_t iterator = tb_array_iterator_init_mem(&array_iterator, g_charsets, tb_arrayn(g_charsets), sizeof(xm_charset_entry_t));
tb_assert_and_check_return_val(iterator, tb_null);
// find it by the binary search