Skip to content

Commit 7984e45

Browse files
author
lzj
committed
修改 bug
1 parent d1173f3 commit 7984e45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

csharp/ToolGood.Algorithm2/Internals/MathVisitor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public Operand VisitAddSub_fun(mathParser.AddSub_funContext context)
129129
}
130130

131131
firstValue = firstValue.ToText($"Function '{t}' parameter 1 is error!");
132-
if (firstValue.IsError) { return secondValue; }
132+
if (firstValue.IsError) { return firstValue; }
133133
secondValue = secondValue.ToText($"Function '{t}' parameter 2 is error!");
134134
if (secondValue.IsError) { return secondValue; }
135135
return Operand.Create(firstValue.TextValue + secondValue.TextValue);

0 commit comments

Comments
 (0)