From dc448a0cb64c9188faae27736e21f378eb6e995b Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Tue, 8 Nov 2016 12:27:31 +0900 Subject: [PATCH] fix trace callback. --- sqlite3.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sqlite3.go b/sqlite3.go index 71a791f..cfbdae3 100644 --- a/sqlite3.go +++ b/sqlite3.go @@ -383,7 +383,7 @@ func (c *SQLiteConn) RegisterFunc(name string, impl interface{}, pure bool) erro if pure { opts |= C.SQLITE_DETERMINISTIC } - rv := sqlite3_create_function(c.db, cname, numArgs, opts, newHandle(c, &fi), C.callbackTrampoline, nil, nil) + rv := sqlite3_create_function(c.db, cname, C.int(numArgs), C.int(opts), C.uintptr_t(newHandle(c, &fi)), C.callbackTrampoline, nil, nil) if rv != C.SQLITE_OK { return c.lastError() }