diff options
author | 2024-12-20 22:37:19 +0100 | |
---|---|---|
committer | 2024-12-20 21:37:19 +0000 | |
commit | 9ae0c7b3636365406b480b494dccc609ccba08b9 (patch) | |
tree | b6a205df8ff83acaff1745ff88885d9346ffef04 /vendor/github.com/ncruces/go-sqlite3/internal/util/mmap_unix.go | |
parent | [bugfix] Load instance-wide custom css in page stylesheets template (#3601) (diff) | |
download | gotosocial-9ae0c7b3636365406b480b494dccc609ccba08b9.tar.xz |
[chore] Update ncruces/go-sqlite3 to 0.21.3 (#3629)
This includes some additional locking fixes for the BSDs.
Diffstat (limited to 'vendor/github.com/ncruces/go-sqlite3/internal/util/mmap_unix.go')
-rw-r--r-- | vendor/github.com/ncruces/go-sqlite3/internal/util/mmap_unix.go | 10 |
1 files changed, 5 insertions, 5 deletions
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 { |