string_split_iterator fix

This commit is contained in:
kalsprite
2026-08-24 17:32:30 -07:00
parent 965970af71
commit 7bf266ef93
6 changed files with 49 additions and 53 deletions

View File

@@ -3640,9 +3640,8 @@ gb_internal int matched_target_features(TypeProc *t) {
int matches = 0;
String_Iterator it = {t->require_target_feature, 0};
for (;;) {
String str = string_split_iterator(&it, ',');
if (str == "") break;
String str = {};
while (string_split_iterator_next(&it, ',', &str)) {
if (check_target_feature_is_valid_for_target_arch(str, nullptr)) {
matches += 1;
}