aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormattn <mattn.jp@gmail.com>2019-05-11 01:41:06 +0900
committerGitHub <noreply@github.com>2019-05-11 01:41:06 +0900
commit2a192bf7823799e082cfa3380aab9f02e4d312c0 (patch)
tree508ae00161932953d01daecacd4728da5b68e274
parentMerge pull request #712 from mattn/sqlite-amalgamation-3280000 (diff)
parentFix type of variadic (diff)
downloadgolite-2a192bf7823799e082cfa3380aab9f02e4d312c0.tar.gz
golite-2a192bf7823799e082cfa3380aab9f02e4d312c0.tar.xz
Merge pull request #716 from mattn/fix-variadic
Fix type of variadic
-rw-r--r--sqlite3.go2
1 files changed, 1 insertions, 1 deletions
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
}