Skip to content

Commit

Permalink
Fixed regression in equality comparison of Index types. (#906)
Browse files Browse the repository at this point in the history
  • Loading branch information
MoFtZ authored Dec 26, 2022
1 parent f05690d commit 8608d7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Src/ILGPU/IndexTypes.tt
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ namespace ILGPU
/// <returns>True, if the first and second index are not the same.</returns>
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}") #>);
<# } #>
Expand Down

0 comments on commit 8608d7d

Please sign in to comment.