From 9ae0c7b3636365406b480b494dccc609ccba08b9 Mon Sep 17 00:00:00 2001 From: Daenney Date: Fri, 20 Dec 2024 22:37:19 +0100 Subject: [chore] Update ncruces/go-sqlite3 to 0.21.3 (#3629) This includes some additional locking fixes for the BSDs. --- .../github.com/ncruces/go-sqlite3/internal/util/mmap_unix.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'vendor/github.com/ncruces/go-sqlite3/internal/util/mmap_unix.go') diff --git a/vendor/github.com/ncruces/go-sqlite3/internal/util/mmap_unix.go b/vendor/github.com/ncruces/go-sqlite3/internal/util/mmap_unix.go index 5d5ca3823..4ff056666 100644 --- a/vendor/github.com/ncruces/go-sqlite3/internal/util/mmap_unix.go +++ b/vendor/github.com/ncruces/go-sqlite3/internal/util/mmap_unix.go @@ -39,13 +39,13 @@ func (s *mmapState) new(ctx context.Context, mod api.Module, size int32) *Mapped // Save the newly allocated region. ptr := uint32(stack[0]) buf := View(mod, ptr, uint64(size)) - addr := unsafe.Pointer(&buf[0]) - s.regions = append(s.regions, &MappedRegion{ + res := &MappedRegion{ Ptr: ptr, - addr: addr, size: size, - }) - return s.regions[len(s.regions)-1] + addr: unsafe.Pointer(&buf[0]), + } + s.regions = append(s.regions, res) + return res } type MappedRegion struct { -- cgit v1.2.3