Skip to content

Commit 12a7812

Browse files
author
linzhijun
committed
fix
1 parent 4249e0c commit 12a7812

File tree

2 files changed

+50
-148
lines changed

2 files changed

+50
-148
lines changed

csharp/ToolGood.Algorithm/Internals/Functions/FunctionBase.value.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ public override Operand Calculate(AlgorithmEngine work)
167167
var index = op.IntValue - work.ExcelIndex;
168168
if (index < obj.ArrayValue.Count)
169169
return obj.ArrayValue[index];
170-
return Operand.Error("ARRARY index {0} greater than maximum length!", index.ToString());
170+
return Operand.Error("ARRARY index {0} greater than maximum length!", index);
171171
}
172172
if (obj.Type == OperandType.ARRARYJSON) {
173173
if (op.Type == OperandType.NUMBER) {
@@ -200,7 +200,7 @@ public override Operand Calculate(AlgorithmEngine work)
200200
if (v.IsNull) return Operand.CreateNull();
201201
return Operand.Create(v);
202202
}
203-
return Operand.Error("JSON index {0} greater than maximum length!", index.ToString());
203+
return Operand.Error("JSON index {0} greater than maximum length!", index);
204204
} else {
205205
op = op.ToText("JSON parameter name is error!");
206206
if (op.IsError) { return op; }

0 commit comments

Comments
 (0)