From 8608d7d5a88602138e7fe748ae9aa4acc71e9582 Mon Sep 17 00:00:00 2001 From: MoFtZ Date: Tue, 27 Dec 2022 00:39:10 +1100 Subject: [PATCH] Fixed regression in equality comparison of Index types. (#906) --- Src/ILGPU/IndexTypes.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Src/ILGPU/IndexTypes.tt b/Src/ILGPU/IndexTypes.tt index 089df6b11..079324957 100644 --- a/Src/ILGPU/IndexTypes.tt +++ b/Src/ILGPU/IndexTypes.tt @@ -485,7 +485,7 @@ namespace ILGPU /// True, if the first and second index are not the same. public static bool operator !=(<#= name #> first, <#= name #> second) => <# if (dimension == 1) { #> - <#= def.Expression(", ", p => $"first.{p} == second.{p}") #>; + <#= def.Expression(", ", p => $"first.{p} != second.{p}") #>; <# } else { #> Bitwise.Or(<#= def.Expression(", ", p => $"first.{p} != second.{p}") #>); <# } #>