|
|
|
@ -1,4 +1,4 @@
@@ -1,4 +1,4 @@
|
|
|
|
|
// Copyright (c) 2014 Daniel Grunwald
|
|
|
|
|
// Copyright (c) 2014 Daniel Grunwald
|
|
|
|
|
//
|
|
|
|
|
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
|
|
|
|
|
// software and associated documentation files (the "Software"), to deal in the Software
|
|
|
|
@ -733,9 +733,8 @@ namespace ICSharpCode.Decompiler.CSharp
@@ -733,9 +733,8 @@ namespace ICSharpCode.Decompiler.CSharp
|
|
|
|
|
} |
|
|
|
|
else |
|
|
|
|
{ |
|
|
|
|
var zero = new PrimitiveExpression(0) |
|
|
|
|
.WithoutILInstruction() |
|
|
|
|
.WithRR(new ConstantResolveResult(expressionBuilder.compilation.FindType(KnownTypeCode.Int32), 0)); |
|
|
|
|
var zero = expressionBuilder |
|
|
|
|
.ConvertConstantValue(new ConstantResolveResult(Type, 0), allowImplicitConversion: true); |
|
|
|
|
var op = negate ? BinaryOperatorType.Equality : BinaryOperatorType.InEquality; |
|
|
|
|
return new BinaryOperatorExpression(Expression, op, zero.Expression) |
|
|
|
|
.WithoutILInstruction() |
|
|
|
|