Skip to content

Commit 8aae74b

Browse files
committed
修改
1 parent 82e4788 commit 8aae74b

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

csharp/ToolGood.Algorithm2/Internals/MathVisitor.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3611,6 +3611,7 @@ public Operand VisitLOOKUP_fun([NotNull] mathParser.LOOKUP_funContext context)
36113611
if (v.IsLong) return Operand.Create(double.Parse(v.ToString(), NumberStyles.Any, cultureInfo));
36123612
if (v.IsObject) return Operand.Create(v);
36133613
if (v.IsArray) return Operand.Create(v);
3614+
if (v.IsNull) return Operand.CreateNull();
36143615
return Operand.Create(v);
36153616
}
36163617
}

csharp/ToolGood.Algorithm2/Operand.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,8 @@ public Operand ToArray(string errorMessage)
202202
list.Add(Operand.Create(double.Parse(v.ToString(), NumberStyles.Any, cultureInfo)));
203203
else if (v.IsLong)
204204
list.Add(Operand.Create(double.Parse(v.ToString(), NumberStyles.Any, cultureInfo)));
205+
else if (v.IsLong)
206+
list.Add(Operand.CreateNull());
205207
else
206208
list.Add(Operand.Create(v));
207209
}
@@ -210,7 +212,7 @@ public Operand ToArray(string errorMessage)
210212
}
211213
return Error(errorMessage);
212214
}
213-
215+
214216

215217
public void Dispose() { }
216218
}

0 commit comments

Comments
 (0)