From 6a26e21416755035b3c77e9c299b9a040f414b4c Mon Sep 17 00:00:00 2001 From: Kevin Burke Date: Thu, 1 Nov 2018 18:03:02 -1000 Subject: all: fix cgo compile failures on tip Apparently the cgo typechecks get better on tip, so use C.int instead of Go integers. Build tip as part of the Travis build, so we can ensure that any errors are resolved before they get released to a wider audience. --- callback.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'callback.go') diff --git a/callback.go b/callback.go index 2c68973..e8c492b 100644 --- a/callback.go +++ b/callback.go @@ -368,7 +368,7 @@ func callbackRet(typ reflect.Type) (callbackRetConverter, error) { func callbackError(ctx *C.sqlite3_context, err error) { cstr := C.CString(err.Error()) defer C.free(unsafe.Pointer(cstr)) - C.sqlite3_result_error(ctx, cstr, -1) + C.sqlite3_result_error(ctx, cstr, C.int(-1)) } // Test support code. Tests are not allowed to import "C", so we can't -- cgit v1.2.3