From 81b9db81264a832370667d9d1eff384530b2dfe6 Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Fri, 10 May 2019 23:23:32 +0900 Subject: [PATCH] Fix type of variadic --- sqlite3.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sqlite3.go b/sqlite3.go index 1cf9451..9e9e91a 100644 --- a/sqlite3.go +++ b/sqlite3.go @@ -683,7 +683,7 @@ func (c *SQLiteConn) RegisterAggregator(name string, impl interface{}, pure bool ai.stepArgConverters = append(ai.stepArgConverters, conv) } if step.IsVariadic() { - conv, err := callbackArg(t.In(start + stepNArgs).Elem()) + conv, err := callbackArg(step.In(start + stepNArgs).Elem()) if err != nil { return err }