From fcd455919e16289155d60d86f2db6c569357816c Mon Sep 17 00:00:00 2001 From: mattn Date: Sun, 22 Mar 2015 03:11:25 +0900 Subject: [PATCH] Should use C.int() --- sqlite3.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sqlite3.go b/sqlite3.go index a7f3c32..efb7cca 100644 --- a/sqlite3.go +++ b/sqlite3.go @@ -318,7 +318,7 @@ func (d *SQLiteDriver) Open(dsn string) (driver.Conn, error) { return nil, errors.New("sqlite succeeded without returning a database") } - rv = C.sqlite3_busy_timeout(db, busy_timeout) + rv = C.sqlite3_busy_timeout(db, C.int(busy_timeout)) if rv != C.SQLITE_OK { return nil, Error{Code: ErrNo(rv)} }