Skip to content

Commit 492d1bd

Browse files
committed
Fix build
1 parent 085a170 commit 492d1bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/NHibernate/Linq/Visitors/ParameterTypeLocator.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,8 @@ protected override Expression VisitMethodCall(MethodCallExpression node)
255255
if (EqualsGenerator.Methods.Contains(node.Method) || CompareGenerator.IsCompareMethod(node.Method))
256256
{
257257
node = (MethodCallExpression) base.VisitMethodCall(node);
258-
var left = Unwrap(node.Method.IsStatic ? node.Arguments[0] : node.Object);
259-
var right = Unwrap(node.Method.IsStatic ? node.Arguments[1] : node.Arguments[0]);
258+
var left = UnwrapUnary(node.Method.IsStatic ? node.Arguments[0] : node.Object);
259+
var right = UnwrapUnary(node.Method.IsStatic ? node.Arguments[1] : node.Arguments[0]);
260260
AddRelatedExpression(node, left, right);
261261
AddRelatedExpression(node, right, left);
262262

0 commit comments

Comments
 (0)