更新研发

This commit is contained in:
hoteas
2022-02-17 04:10:53 +08:00
parent d4759bb03c
commit 6a46d06e81
144 changed files with 81989 additions and 102 deletions
+4
View File
@@ -140,6 +140,10 @@ func ObjToFloat64(obj interface{}, e ...*Error) float64 {
err = errors.New("float64 is NaN")
v = 0
}
if math.IsInf(v, 0) {
err = errors.New("float64 is Inf")
v = 0
}
if len(e) != 0 {
e[0].SetError(err)
}