Skip to content

Commit 576a2cb

Browse files
committed
Fix build failure of incorrect expression for unsafe.Sizeof
1 parent 276457a commit 576a2cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sqlite3_opt_unlock_notify.go

Lines changed: 1 addition & 1 deletion
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)