From 4fa0d412023ffdefc4ba63eecccd4b74e712ff7d Mon Sep 17 00:00:00 2001 From: Daenney Date: Sat, 14 Sep 2024 16:36:25 +0200 Subject: [chore] Update go-sqlite3 to 0.18.3 (#3295) * [chore] Update go-sqlite3 to 0.18.3 * [chore] Fix getting the sqlite3.Conn --- vendor/github.com/ncruces/go-sqlite3/internal/alloc/alloc_unix.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vendor/github.com/ncruces/go-sqlite3/internal/alloc/alloc_unix.go') diff --git a/vendor/github.com/ncruces/go-sqlite3/internal/alloc/alloc_unix.go b/vendor/github.com/ncruces/go-sqlite3/internal/alloc/alloc_unix.go index 39a3a38cc..009cc1f0b 100644 --- a/vendor/github.com/ncruces/go-sqlite3/internal/alloc/alloc_unix.go +++ b/vendor/github.com/ncruces/go-sqlite3/internal/alloc/alloc_unix.go @@ -39,7 +39,7 @@ type mmappedMemory struct { func (m *mmappedMemory) Reallocate(size uint64) []byte { com := uint64(len(m.buf)) res := uint64(cap(m.buf)) - if com < size && size < res { + if com < size && size <= res { // Round up to the page size. rnd := uint64(unix.Getpagesize() - 1) new := (size + rnd) &^ rnd -- cgit v1.2.3