diff options
-rw-r--r-- | sqlite3.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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() } |