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}") #>); <# } #>