mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-10 23:05:32 -04:00
string_split_iterator fix
This commit is contained in:
1 parent
965970af71
commit
7bf266ef93
6 files changed
+49
-53
No files matched your search
+2
-3
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user