From 6aeb07d8df513a3f4a9eab5b2eed6012bc30b87f Mon Sep 17 00:00:00 2001 From: dadhi Date: Mon, 10 Jan 2022 23:40:37 +0100 Subject: [PATCH] more #314 --- src/FastExpressionCompiler.LightExpression/Expression.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/FastExpressionCompiler.LightExpression/Expression.cs b/src/FastExpressionCompiler.LightExpression/Expression.cs index 56e07c09..731682fe 100644 --- a/src/FastExpressionCompiler.LightExpression/Expression.cs +++ b/src/FastExpressionCompiler.LightExpression/Expression.cs @@ -1517,12 +1517,14 @@ public static BinaryExpression MakeBinary(ExpressionType binaryType, Expression case ExpressionType.MultiplyChecked: case ExpressionType.Divide: case ExpressionType.Modulo: + return GetArithmeticBinary(binaryType, left, right, method); + case ExpressionType.Power: case ExpressionType.And: case ExpressionType.AndAlso: case ExpressionType.Or: case ExpressionType.OrElse: - return GetLeftTypedBinary(binaryType, left, right, method); // todo: @wip incomplete + return GetLeftTypedBinary(binaryType, left, right, method); // todo: @wip incomplete, see GetArithmeticBinary case ExpressionType.LessThan: return LessThan(left, right, liftToNull, method); case ExpressionType.LessThanOrEqual: return LessThanOrEqual(left, right, liftToNull, method);