Skip to content

Commit e28b9d7

Browse files
author
David Karlaš
committed
Bug 44851 - [Xamarin Studio] Expression Evaluator Does Not Mirror C# Console Expected Results
1 parent d9ea62f commit e28b9d7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Mono.Debugging/Mono.Debugging.Evaluation/NRefactoryExpressionEvaluatorVisitor.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,10 @@ static Type GetCommonOperationType (object v1, object v2)
106106

107107
static Type GetCommonType (object v1, object v2)
108108
{
109+
if (v1 is double || v2 is double)
110+
return typeof (double);
111+
if (v1 is float || v2 is float)
112+
return typeof (float);
109113
int s1 = Marshal.SizeOf (v1);
110114
if (IsUnsigned (s1))
111115
s1 += 8;

0 commit comments

Comments
 (0)