Multiple Changes

This commit is contained in:
2026-05-02 01:02:01 +03:00
parent 7663c76329
commit c38e5784e9
5 changed files with 54 additions and 4 deletions
+4 -3
View File
@@ -330,7 +330,7 @@ evstring_free(
{
evstr_asserttype(s);
if(META(s)->allocationType == EV_STR_ALLOCATION_TYPE_HEAP) {
free(META(s));
ev_str_free(META(s));
}
}
@@ -546,9 +546,10 @@ __evstring_findFirst_impl(
};
for(u64 i = text.offset; i < text.offset + text.len; i++) {
if(text.data[i] == query.data[query.offset + found_progress]) {
if(text.data[i] == query.data[query.offset + found_progress])
found_progress++;
}
else
found_progress = 0;
if(found_progress == query.len) {
result.offset = (i+1) - query.len;
result.len = query.len;