Multiple Changes
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user