mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-05 20:32:03 -04:00
Fix recursive loop bug for is_type_polymorphic
This commit is contained in:
1 parent
d3c7d6d485
commit
2301ae157c
1 file changed
+5
-5
+5
-5
@@ -1199,11 +1199,11 @@ bool is_type_polymorphic(Type *t, bool or_specialized=false) {
|
||||
if (or_specialized && t->Union.is_poly_specialized) {
|
||||
return true;
|
||||
}
|
||||
for_array(i, t->Union.variants) {
|
||||
if (is_type_polymorphic(t->Union.variants[i], or_specialized)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
// for_array(i, t->Union.variants) {
|
||||
// if (is_type_polymorphic(t->Union.variants[i], or_specialized)) {
|
||||
// return true;
|
||||
// }
|
||||
// }
|
||||
break;
|
||||
case Type_Struct:
|
||||
if (t->Struct.is_polymorphic) {
|
||||
|
||||
Reference in new issue
Block a user