diff --git a/lang/funcs/list_lookup_default_func.go b/lang/funcs/list_lookup_default_func.go index ac6d7600..2680ed86 100644 --- a/lang/funcs/list_lookup_default_func.go +++ b/lang/funcs/list_lookup_default_func.go @@ -205,7 +205,7 @@ func (obj *ListLookupDefaultFunc) Stream(ctx context.Context) error { // TODO: should we handle overflow by returning default? if index > math.MaxInt { // max int size varies by arch - return fmt.Errorf("list index overflow, got: %d, max is: %d", index, math.MaxInt32) + return fmt.Errorf("list index overflow, got: %d, max is: %d", index, math.MaxInt) } // negative index values are "not found" here! diff --git a/lang/funcs/list_lookup_func.go b/lang/funcs/list_lookup_func.go index efaef979..18a0c8ea 100644 --- a/lang/funcs/list_lookup_func.go +++ b/lang/funcs/list_lookup_func.go @@ -190,7 +190,7 @@ func (obj *ListLookupFunc) Stream(ctx context.Context) error { // TODO: should we handle overflow by returning zero? if index > math.MaxInt { // max int size varies by arch - return fmt.Errorf("list index overflow, got: %d, max is: %d", index, math.MaxInt32) + return fmt.Errorf("list index overflow, got: %d, max is: %d", index, math.MaxInt) } // negative index values are "not found" here!