]> source.dussan.org Git - gitea.git/commitdiff
Update vendor/github.com/mattn/go-sqlite3 (#5162)
authorMura Li <typeless@users.noreply.github.com>
Wed, 24 Oct 2018 08:18:51 +0000 (16:18 +0800)
committerLunny Xiao <xiaolunwen@gmail.com>
Wed, 24 Oct 2018 08:18:51 +0000 (16:18 +0800)
To fix build failure on Windows/386

Gopkg.lock
Gopkg.toml
vendor/github.com/mattn/go-sqlite3/sqlite3_opt_unlock_notify.go

index 21d5c98e5a2999269f7634726753c65e4bd18204..82df421545f0fd8aa696274c5780537512afe821 100644 (file)
   version = "v1.46.1"
 
 [[projects]]
-  digest = "1:9996f2363985103284c59b3d0ca5be58deb1b0db22144bb2fcfa0b4e16f0e61b"
+  digest = "1:c9724c929d27a14475a45b17a267dbc60671c0bc2c5c05ed21f011f7b5bc9fb5"
   name = "github.com/mattn/go-sqlite3"
   packages = ["."]
   pruneopts = "NUT"
-  revision = "f3aa5ce89995fab8c7777f7821f689d9ac81c80f"
+  revision = "c7c4067b79cc51e6dfdcef5c702e74b1e0fa7c75"
 
 [[projects]]
   branch = "master"
index e491eff8bf9c9ae9d8b9e0ed1b64e863e0eb293d..08a90a3081f8dde3e250da1a362e46a54dba0d5f 100644 (file)
@@ -41,7 +41,7 @@ ignored = ["google.golang.org/appengine*"]
 
 [[override]]
   name = "github.com/mattn/go-sqlite3"
-  revision = "f3aa5ce89995fab8c7777f7821f689d9ac81c80f"
+  revision = "c7c4067b79cc51e6dfdcef5c702e74b1e0fa7c75"
 
 [[override]]
   name = "github.com/gorilla/mux"
index ee29439312d516a2a39e1953b18aed0531b2bcd2..5dde027d000b3ae7017e45f980270e399b47b9d5 100644 (file)
@@ -19,6 +19,7 @@ extern void unlock_notify_callback(void *arg, int argc);
 import "C"
 import (
        "fmt"
+       "math"
        "sync"
        "unsafe"
 )
@@ -59,7 +60,7 @@ func (t *unlock_notify_table) get(h uint) chan struct{} {
 //export unlock_notify_callback
 func unlock_notify_callback(argv unsafe.Pointer, argc C.int) {
        for i := 0; i < int(argc); i++ {
-               parg := ((*(*[1 << 30]*[1]uint)(argv))[i])
+               parg := ((*(*[(math.MaxInt32 - 1) / unsafe.Sizeof((*C.uint)(nil))]*[1]uint)(argv))[i])
                arg := *parg
                h := arg[0]
                c := unt.get(h)