Skip to content

Commit

Permalink
PR review suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
dudikeleti committed Aug 8, 2024
1 parent 53f58d9 commit 8dadf3e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ private void NumericImplicitConversion(ref Expression left, ref Expression right

if (left.Type.IsNumeric() && right.Type.IsNumeric())
{
var type = GetWiderType(left.Type, right.Type);
var type = GetWiderNumericType(left.Type, right.Type);
left = Expression.Convert(left, type);
right = Expression.Convert(right, type);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ internal partial class ProbeExpressionParser<T>
private const BindingFlags GetMemberFlags = BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Static | BindingFlags.Instance | BindingFlags.FlattenHierarchy;

// https://learn.microsoft.com/en-us/dotnet/standard/base-types/conversion-tables
private static Type GetWiderType(Type left, Type right)
private static Type GetWiderNumericType(Type left, Type right)
{
if (left == right)
{
Expand Down

0 comments on commit 8dadf3e

Please sign in to comment.