Skip to content

Commit c7c4067

Browse files
authored
Merge pull request #655 from typeless/fix-too-large-arrary-error-v2
Fix build failure of incorrect expression for unsafe.Sizeof
2 parents 276457a + 576a2cb commit c7c4067

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: sqlite3_opt_unlock_notify.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ func (t *unlock_notify_table) get(h uint) chan struct{} {
6060
//export unlock_notify_callback
6161
func unlock_notify_callback(argv unsafe.Pointer, argc C.int) {
6262
for i := 0; i < int(argc); i++ {
63-
parg := ((*(*[(math.MaxInt32 - 1) / unsafe.Sizeof(uintptr)]*[1]uint)(argv))[i])
63+
parg := ((*(*[(math.MaxInt32 - 1) / unsafe.Sizeof((*C.uint)(nil))]*[1]uint)(argv))[i])
6464
arg := *parg
6565
h := arg[0]
6666
c := unt.get(h)

0 commit comments

Comments
 (0)