fix trace callback.

This commit is contained in:
Yasuhiro Matsumoto 2016-11-08 12:27:31 +09:00
parent dd2c82226b
commit dc448a0cb6
1 changed files with 1 additions and 1 deletions

View File

@ -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()
}