mirror of
https://github.com/Biarity/Sieve.git
synced 2024-11-21 21:12:50 +01:00
Merge pull request #116 from TilmannBach/master
fix: AND operator uses wrong bitwise operator instead of AndAlso expression
This commit is contained in:
commit
18eedf2e1a
@ -237,7 +237,7 @@ namespace Sieve.Services
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
innerExpression = Expression.Or(innerExpression, expression);
|
innerExpression = Expression.OrElse(innerExpression, expression);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -261,7 +261,7 @@ namespace Sieve.Services
|
|||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
outerExpression = Expression.And(outerExpression, innerExpression);
|
outerExpression = Expression.AndAlso(outerExpression, innerExpression);
|
||||||
}
|
}
|
||||||
return outerExpression == null
|
return outerExpression == null
|
||||||
? result
|
? result
|
||||||
|
Loading…
Reference in New Issue
Block a user