mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 23:28:48 +00:00
Fix recursive loop bug for is_type_polymorphic
This commit is contained in:
+5
-5
@@ -1199,11 +1199,11 @@ bool is_type_polymorphic(Type *t, bool or_specialized=false) {
|
|||||||
if (or_specialized && t->Union.is_poly_specialized) {
|
if (or_specialized && t->Union.is_poly_specialized) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
for_array(i, t->Union.variants) {
|
// for_array(i, t->Union.variants) {
|
||||||
if (is_type_polymorphic(t->Union.variants[i], or_specialized)) {
|
// if (is_type_polymorphic(t->Union.variants[i], or_specialized)) {
|
||||||
return true;
|
// return true;
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
break;
|
break;
|
||||||
case Type_Struct:
|
case Type_Struct:
|
||||||
if (t->Struct.is_polymorphic) {
|
if (t->Struct.is_polymorphic) {
|
||||||
|
|||||||
Reference in New Issue
Block a user