fix(lang): fixes occurrence index in findSequnce built-in fucntion (#120)
This commit is contained in:
parent
02b3b94804
commit
575903f921
@ -24,7 +24,7 @@ namespace hex::lang {
|
||||
this->m_provider->read(offset, bytes.data(), bytes.size());
|
||||
|
||||
if (bytes == sequence) {
|
||||
if (LITERAL_COMPARE(occurrenceIndex, occurrenceIndex < occurrences)) {
|
||||
if (LITERAL_COMPARE(occurrenceIndex, occurrences < occurrenceIndex)) {
|
||||
occurrences++;
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user