summaryrefslogtreecommitdiffstats
path: root/vendor
diff options
context:
space:
mode:
authorMura Li <typeless@users.noreply.github.com>2018-10-24 16:18:51 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2018-10-24 16:18:51 +0800
commit317ddb72830e11a361d3ca04647b98090b799fd5 (patch)
treeca80ac7240109e17d73c94aaf44be75cb50ddd24 /vendor
parentefa4e6bc6fec292ab910117d08ad3598c6811e81 (diff)
downloadgitea-317ddb72830e11a361d3ca04647b98090b799fd5.tar.gz
gitea-317ddb72830e11a361d3ca04647b98090b799fd5.zip
Update vendor/github.com/mattn/go-sqlite3 (#5162)
To fix build failure on Windows/386
Diffstat (limited to 'vendor')
-rw-r--r--vendor/github.com/mattn/go-sqlite3/sqlite3_opt_unlock_notify.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/vendor/github.com/mattn/go-sqlite3/sqlite3_opt_unlock_notify.go b/vendor/github.com/mattn/go-sqlite3/sqlite3_opt_unlock_notify.go
index ee29439312..5dde027d00 100644
--- a/vendor/github.com/mattn/go-sqlite3/sqlite3_opt_unlock_notify.go
+++ b/vendor/github.com/mattn/go-sqlite3/sqlite3_opt_unlock_notify.go
@@ -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)