summaryrefslogtreecommitdiff
path: root/vendor/modernc.org/libc/mem_musl.go
diff options
context:
space:
mode:
authorLibravatar kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com>2024-09-27 22:53:36 +0000
committerLibravatar GitHub <noreply@github.com>2024-09-27 22:53:36 +0000
commit3f9a1dbfff1b33fd6033e6fa3ac4ed63b3b0a471 (patch)
treea3dcfc2ec04fc2e08f5222621fb3b1106d94d2e9 /vendor/modernc.org/libc/mem_musl.go
parent[bugfix] better handle ogg container format (#3365) (diff)
downloadgotosocial-3f9a1dbfff1b33fd6033e6fa3ac4ed63b3b0a471.tar.xz
update modernc/sqlite to v1.33.1 (with our concurrency workaround) (#3367)
Diffstat (limited to 'vendor/modernc.org/libc/mem_musl.go')
-rw-r--r--vendor/modernc.org/libc/mem_musl.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/vendor/modernc.org/libc/mem_musl.go b/vendor/modernc.org/libc/mem_musl.go
index 01f74f1a1..78770dfff 100644
--- a/vendor/modernc.org/libc/mem_musl.go
+++ b/vendor/modernc.org/libc/mem_musl.go
@@ -2,13 +2,13 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-//go:build !libc.membrk && !libc.memgrind && linux && (amd64 || loong64)
+//go:build !libc.membrk && !libc.memgrind && linux && (amd64 || arm64 || loong64)
-package libc // import "modernc.org/libc/v2"
+package libc // import "modernc.org/libc"
import (
"math"
- "math/bits"
+ mbits "math/bits"
"modernc.org/memory"
)
@@ -49,7 +49,7 @@ func Xcalloc(tls *TLS, m Tsize_t, n Tsize_t) (r uintptr) {
trc("tls=%v m=%v n=%v, (%v:)", tls, m, n, origin(2))
defer func() { trc("-> %v", r) }()
}
- hi, rq := bits.Mul(uint(m), uint(n))
+ hi, rq := mbits.Mul(uint(m), uint(n))
if hi != 0 || rq > math.MaxInt {
tls.setErrno(ENOMEM)
return 0