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
return right; return right;
} }
if (inst.Left.MatchLdcI4(1)) { if (inst.Left.MatchLdcI4(1)) {
// '0 == b' => '!b' // '1 == b' => 'b'
// '0 != b' => 'b' // '1 != b' => '!b'
negateOutput = inst.Kind == ComparisonKind.Equality; negateOutput = inst.Kind == ComparisonKind.Inequality;
return right; return right;
} }
} }

Loading…
Cancel
Save