fix(library/vm/vm_string): fix iterator.extract
This commit is contained in:
parent
203545ce99
commit
a9d5386b00
1 changed files with 1 additions and 1 deletions
|
|
@ -488,7 +488,7 @@ vm_obj string_iterator_extract(vm_obj const & it1, vm_obj const & it2) {
|
|||
size_t pos2 = it_pos(it2);
|
||||
if (pos2 < pos1)
|
||||
return mk_vm_none();
|
||||
return mk_vm_some(to_obj(s1.m_value.substr(pos1, pos2 - pos1), pos2 - pos1));
|
||||
return mk_vm_some(to_obj(s1.m_value.substr(pos1, pos2 - pos1), it_remaining(it1) - it_remaining(it2)));
|
||||
}
|
||||
|
||||
vm_obj string_hash(vm_obj const & s) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue