mirror of
https://github.com/odin-lang/Odin.git
synced 2026-09-02 10:13:35 +00:00
string_split_iterator fix
This commit is contained in:
@@ -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