mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-15 11:43:02 -06:00
[chore] update go-sqlite3 to v0.19.0 (#3406)
This commit is contained in:
parent
1e421cb912
commit
2c3f1f4ddb
31 changed files with 274 additions and 171 deletions
2
vendor/github.com/ncruces/go-sqlite3/internal/alloc/alloc_unix.go
generated
vendored
2
vendor/github.com/ncruces/go-sqlite3/internal/alloc/alloc_unix.go
generated
vendored
|
|
@ -47,7 +47,7 @@ func (m *mmappedMemory) Reallocate(size uint64) []byte {
|
|||
// Commit additional memory up to new bytes.
|
||||
err := unix.Mprotect(m.buf[com:new], unix.PROT_READ|unix.PROT_WRITE)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
return nil
|
||||
}
|
||||
|
||||
// Update committed memory.
|
||||
|
|
|
|||
2
vendor/github.com/ncruces/go-sqlite3/internal/alloc/alloc_windows.go
generated
vendored
2
vendor/github.com/ncruces/go-sqlite3/internal/alloc/alloc_windows.go
generated
vendored
|
|
@ -56,7 +56,7 @@ func (m *virtualMemory) Reallocate(size uint64) []byte {
|
|||
// Commit additional memory up to new bytes.
|
||||
_, err := windows.VirtualAlloc(m.addr, uintptr(new), windows.MEM_COMMIT, windows.PAGE_READWRITE)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
return nil
|
||||
}
|
||||
|
||||
// Update committed memory.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue