From 921a29ded7b8bbf767d5f64d50b0c6b65e7cec08 Mon Sep 17 00:00:00 2001 From: DanielGavin Date: Thu, 25 Jul 2024 22:01:40 +0200 Subject: [PATCH] Simplify --- src/server/generics.odin | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/server/generics.odin b/src/server/generics.odin index 9b0dc1d3..976dd6fe 100644 --- a/src/server/generics.odin +++ b/src/server/generics.odin @@ -151,10 +151,8 @@ resolve_poly :: proc( case ^ast.Dynamic_Array_Type: if call_array, ok := call_node.derived.(^ast.Dynamic_Array_Type); ok { - a_soa := common.dynamic_array_is_soa(p^) - b_soa := common.dynamic_array_is_soa(call_array^) - - if (a_soa || b_soa) && a_soa != b_soa { + if common.dynamic_array_is_soa(p^) != + common.dynamic_array_is_soa(call_array^) { return false } @@ -192,10 +190,7 @@ resolve_poly :: proc( if call_array, ok := call_node.derived.(^ast.Array_Type); ok { found := false - a_soa := common.array_is_soa(p^) - b_soa := common.array_is_soa(call_array^) - - if (a_soa || b_soa) && a_soa != b_soa { + if common.array_is_soa(p^) != common.array_is_soa(call_array^) { return false }