aboutsummaryrefslogtreecommitdiff
path: root/callback.go
diff options
context:
space:
mode:
authorKevin Burke <kev@inburke.com>2018-11-01 18:03:02 -1000
committerKevin Burke <kev@inburke.com>2018-11-01 20:42:26 -1000
commit6a26e21416755035b3c77e9c299b9a040f414b4c (patch)
tree44ea93e2c36d8decc46e4428f45db02056bee44b /callback.go
parentMerge pull request #655 from typeless/fix-too-large-arrary-error-v2 (diff)
downloadgolite-6a26e21416755035b3c77e9c299b9a040f414b4c.tar.gz
golite-6a26e21416755035b3c77e9c299b9a040f414b4c.tar.xz
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.
Diffstat (limited to 'callback.go')
-rw-r--r--callback.go2
1 files changed, 1 insertions, 1 deletions
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