aboutsummaryrefslogtreecommitdiff
path: root/sqlite3_opt_unlock_notify.go
diff options
context:
space:
mode:
authormattn <mattn.jp@gmail.com>2018-10-24 11:40:35 +0900
committerGitHub <noreply@github.com>2018-10-24 11:40:35 +0900
commitc7c4067b79cc51e6dfdcef5c702e74b1e0fa7c75 (patch)
treeb4a500a6e46f3e7d4e309fa7f827965fcb67443d /sqlite3_opt_unlock_notify.go
parentMerge pull request #654 from typeless/fix-too-large-arrary-error (diff)
parentFix build failure of incorrect expression for unsafe.Sizeof (diff)
downloadgolite-c7c4067b79cc51e6dfdcef5c702e74b1e0fa7c75.tar.gz
golite-c7c4067b79cc51e6dfdcef5c702e74b1e0fa7c75.tar.xz
Merge pull request #655 from typeless/fix-too-large-arrary-error-v2
Fix build failure of incorrect expression for unsafe.Sizeof
Diffstat (limited to 'sqlite3_opt_unlock_notify.go')
-rw-r--r--sqlite3_opt_unlock_notify.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/sqlite3_opt_unlock_notify.go b/sqlite3_opt_unlock_notify.go
index e2fcefc..5dde027 100644
--- a/sqlite3_opt_unlock_notify.go
+++ b/sqlite3_opt_unlock_notify.go
@@ -60,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 := ((*(*[(math.MaxInt32 - 1) / unsafe.Sizeof(uintptr)]*[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)