Browse Source

Fix c/p error in TranslateCeq

pull/847/head
Siegfried Pammer 8 years ago
parent
commit
f61423ab12
  1. 6
      ICSharpCode.Decompiler/CSharp/ExpressionBuilder.cs

6
ICSharpCode.Decompiler/CSharp/ExpressionBuilder.cs

@ -459,9 +459,9 @@ namespace ICSharpCode.Decompiler.CSharp @@ -459,9 +459,9 @@ namespace ICSharpCode.Decompiler.CSharp
return right;
}
if (inst.Left.MatchLdcI4(1)) {
// '0 == b' => '!b'
// '0 != b' => 'b'
negateOutput = inst.Kind == ComparisonKind.Equality;
// '1 == b' => 'b'
// '1 != b' => '!b'
negateOutput = inst.Kind == ComparisonKind.Inequality;
return right;
}
}

Loading…
Cancel
Save