replaced ToInt() with ToGoInt()

This commit is contained in:
2024-06-26 04:25:49 +02:00
parent bbdf498cf3
commit f1e2163277
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ func verifyKey(indexTerm *term, indexList *ListType) (index any, err error) {
func verifyIndex(indexTerm *term, indexList *ListType, maxValue int) (index int, err error) {
var v int
if v, err = ToInt((*indexList)[0], "index expression"); err == nil {
if v, err = ToGoInt((*indexList)[0], "index expression"); err == nil {
if v < 0 && v >= -maxValue {
v = maxValue + v
}